Reputation: 39
I can't seem to find any information regarding this, here is the scenario:
I'm working on a feature branch. A bug gets reported. So I switch to my master branch then create a new branch by checkout with the -b switch
git checkout -b bugbranch
What happens if I issue the command on a branch other than master? Will it create a new branch under master or create a branch off of the other branch?
Upvotes: 0
Views: 61
Reputation: 4667
You can do
git branch branchname startpoint
This will create a new branch with name branchname
and starting point at startpoint
. For more information, consult git branch --help
.
Upvotes: 2