git checkout -b

From wikieduonline
Revision as of 13:03, 5 December 2022 by Ant (talk | contribs)
Jump to navigation Jump to search

Create a new branch:

git branch new_branch 
git checkout new_branch


git checkout -b YOUR_NEW_BRANCH_NAME
Switched to a new branch 'YOUR_NEW_BRANCH_NAME'
git checkout -b "Name with spaces"
fatal: 'Name with spaces' is not a valid branch name.


See also

Advertising: