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
I am trying to check out an orphan branch in a repository that has previous commits in it. For example, commits A, B, and C are in master, but I want to make a branch separate that has no commits, and no staged changes.
In order to do that, given that repo is a Repo instance initialized properly, I am running:
When I run the command in cmdline from the command line, everything seems to work out correctly. However, I'm not sure why it looks like git is trying to pick up another switch here. Is there something I'm not seeing?
The text was updated successfully, but these errors were encountered:
I am trying to check out an orphan branch in a repository that has previous commits in it. For example, commits A, B, and C are in
master
, but I want to make a branchseparate
that has no commits, and no staged changes.In order to do that, given that
repo
is aRepo
instance initialized properly, I am running:The result I'm getting is:
When I run the command in
cmdline
from the command line, everything seems to work out correctly. However, I'm not sure why it looks like git is trying to pick up another switch here. Is there something I'm not seeing?The text was updated successfully, but these errors were encountered: