Difference between revisions of "Git checkout -b"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
Create a new [[branch]]: | Create a new [[branch]]: | ||
[[git checkout]] -b YOUR_NEW_BRANCH_NAME | [[git checkout]] -b YOUR_NEW_BRANCH_NAME | ||
− | Switched to a new branch | + | Switched to a new branch 'YOUR_NEW_BRANCH_NAME' |
git checkout -b "Name with spaces" | git checkout -b "Name with spaces" |
Revision as of 17:30, 15 July 2022
Create a 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
git checkout
[-b
|master | main | -f
]
Advertising: