ok/jj
1
0
Fork 0
forked from mirrors/jj

docs: fix converting a repo into a co-located one

`jj st` doesn't add the file `.git/refs/heads/main` so the git repo is left
in an invalid state. `jj new @-` puts the git repo in a valid state.
This commit is contained in:
Remo Senekowitsch 2024-05-18 09:45:46 +02:00 committed by Yuya Nishihara
parent c04fb7d33a
commit c9375bf76f

View file

@ -173,7 +173,7 @@ echo -n '../../../.git' > .jj/repo/store/git_target
echo '/*' > .jj/.gitignore
# Make the Git repository non-bare and set HEAD
git config --unset core.bare
jj st
jj new @-
```
We may officially support this in the future. If you try this, we would