Replies: 1 comment
-
I vote for "option" instead of "default" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
when I fetch a remote repository and try to check out one of the remote branches (e.g. origin/develop), Zed puts me into a detached HEAD state.
In other editors like VS Code, checking out a remote branch automatically creates a local branch that tracks the remote one (which I believe is equivalent to running git switch -c develop origin/develop under the hood). That way, I can work on the branch right away without manually creating and checking it out.
In Zed, I need to manually create the branch with
git switch -c feature origin/feature
or similar to avoid the detached state, which breaks the flow a bit.It would be great if Zed could offer an option (or default behavior) to automatically create a local tracking branch when checking out a remote one.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions