Changing local directory to be git's main instead of detached head?
#7922
Replies: 3 comments 1 reply
-
|
You probably want to run |
Beta Was this translation helpful? Give feedback.
-
|
Assuming you don't have any changes in your working copy ( Otherwise, it might be better to do |
Beta Was this translation helpful? Give feedback.
-
|
Cool - is there some docs that explain what is happening under the covers that results in being a detached head state from git's point of view? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have workflow scripts that rely on git status locally knowing I'm on
main, which is not the default case with jj (I'm on a detached head). I don't know what jj is actually doing under the covers, so am I safe togit checkout main, do what I need to do and thenjj newto get back to working?Basically, I want to "turn off" whatever jj is doing so I can run these automations as if I was still using Git, then "turn on" jj to keep using it.
Beta Was this translation helpful? Give feedback.
All reactions