← 返回命令列表

Linux command

jj-git-clone 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Clone repository

jj git clone [url]

Clone to specific directory

jj git clone [url] [directory]

Clone with colocated Git

jj git clone --colocate [url]

说明

jj git clone clones a Git repository into a Jujutsu workspace. It fetches all branches and creates the jj internal structure. The colocate option keeps Git and jj data together. This enables using both tools on the same repository.

参数

--colocate
Create colocated jj/Git repo.
--help
Display help information.

FAQ

What is the jj-git-clone command used for?

jj git clone clones a Git repository into a Jujutsu workspace. It fetches all branches and creates the jj internal structure. The colocate option keeps Git and jj data together. This enables using both tools on the same repository.

How do I run a basic jj-git-clone example?

Run `jj git clone [url]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --colocate do in jj-git-clone?

Create colocated jj/Git repo.