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:
parent
c04fb7d33a
commit
c9375bf76f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue