LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

jj-git-init

initializes a Jujutsu repository with Git backend

TLDR

Create a new colocated jj/Git repo (default)
$ jj git init
copy
Create a new jj repo at a specific path
$ jj git init [path]
copy
Initialize jj using an existing Git repo as the backing store
$ jj git init --git-repo=[path/to/git-repo]
copy

SYNOPSIS

jj git init [options] [path]

DESCRIPTION

jj git init initializes a Jujutsu repository with a Git backend. By default it creates a colocated repo where both `.jj` and `.git` directories exist, allowing both jj and git commands to work on the same repo. IDE Git integration works as-is in colocated mode.

PARAMETERS

--colocate

Create a colocated jj/Git repo. This is the default unless `git.colocate` config is set to false.
--git-repo path
Path to an existing Git repository to use as the backing store. Mutually exclusive with --colocate.

SEE ALSO

jj(1), jj-git-clone(1), jj-git-fetch(1), git(1)

Copied to clipboard
Kai