jj git clone

Create a new repo backed by a clone of a Git 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://jj-vcs.github.io/jj/latest/cli-reference/#jj-git-clone.

jj git clone {{source}} {{path/to/directory}}

jj git clone --remote {{remote_name}} {{source}}

jj git clone --depth {{10}} {{source}}

jj git clone --colocate {{source}}