Skip to content
Discussion options

You must be logged in to vote

There is no concept of a "bare" repository, but you can jj new root() to get a new empty working copy. That's essentially a bare repository.

$ jj git clone git@github.com:user/repo
$ cd repo
$ jj new 'root()'
$ ls -a
.jj

Then you can ignore the whole directory and add workspaces:

$ echo '*' > .gitignore
$ jj workspace add feature-a -r main
$ ls -a
.jj   feature-a

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ahmedelgabri
Comment options

Comment options

You must be logged in to vote
1 reply
@ahmedelgabri
Comment options

Answer selected by ahmedelgabri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants