HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

jj git init — Create a new Git backed Jujutsu repo. Note: Unless `--colocate` is used, it is not a valid Git repos

Submitted by: @import:tldr-pages··
0
Viewed 0 times
createcommandnewclibackedjujutsujj git initgit

Problem

How to use the jj git init command: Create a new Git backed Jujutsu repo. Note: Unless --colocate is used, it is not a valid Git repository and git commands can't be used on it. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-git-init>.

Solution

jj git init — Create a new Git backed Jujutsu repo. Note: Unless --colocate is used, it is not a valid Git repository and git commands can't be used on it. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-git-init>.

Create a new Git backed repo in the current directory:
jj git init


Create a new Git backed repo in the given directory:
jj git init {{path/to/directory}}


Initialize the Jujutsu repository as a valid Git repository (allowing the use of both jj and git commands in the same directory):
jj git init --colocate


Initialize the Jujutsu repository backed by an existing Git repository:
jj git init --git-repo {{git_repo}}

Code Snippets

Create a new Git backed repo in the current directory

jj git init

Create a new Git backed repo in the given directory

jj git init {{path/to/directory}}

Initialize the Jujutsu repository as a valid Git repository (allowing the use of both `jj` and `git` commands in the same directory)

jj git init --colocate

Initialize the Jujutsu repository backed by an existing Git repository

jj git init --git-repo {{git_repo}}

Context

tldr-pages: common/jj git init

Revisions (0)

No revisions yet.