You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The switch action of the kind git_branch will checkout and detach it if it is a remote branch.
When there's a remote branch origin/foo and there no local branch foo, git switch foo can guess the origin/foo as a tracking branch.
e.g.
$ git branch* main 1234567 [origin/main] xxxx
$ git branch --remote origin/main origin/foo
$ git switch foobranch 'foo' set up to track 'origin/foo'.Switched to a new branch 'foo'
Could the kind git_branch support the action like it?
The text was updated successfully, but these errors were encountered:
The
switch
action of the kindgit_branch
will checkout and detach it if it is a remote branch.When there's a remote branch
origin/foo
and there no local branchfoo
,git switch foo
can guess theorigin/foo
as a tracking branch.e.g.
Could the kind
git_branch
support the action like it?The text was updated successfully, but these errors were encountered: