From c9375bf76f91a5e3f4d0d4b60e7ef36a7f01b850 Mon Sep 17 00:00:00 2001 From: Remo Senekowitsch Date: Sat, 18 May 2024 09:45:46 +0200 Subject: [PATCH] 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. --- docs/git-compatibility.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/git-compatibility.md b/docs/git-compatibility.md index 24076d7b2..b53391870 100644 --- a/docs/git-compatibility.md +++ b/docs/git-compatibility.md @@ -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