Editing Git checkout -b
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | |||
− | |||
Create a new branch and change to it: | Create a new branch and change to it: | ||
[[git checkout]] -b YOUR_NEW_BRANCH_NAME | [[git checkout]] -b YOUR_NEW_BRANCH_NAME | ||
Line 8: | Line 6: | ||
git checkout -b "Name with spaces" | git checkout -b "Name with spaces" | ||
fatal: 'Name with spaces' is not a valid branch name. | fatal: 'Name with spaces' is not a valid branch name. | ||
− | |||
− | |||
− | |||
=== Create a new [[branch]] === | === Create a new [[branch]] === | ||
− | + | [[git branch]] new_branch | |
− | + | [[git checkout]] new_branch | |
− | |||
− | |||
− | |||
== Related == | == Related == | ||
* [[Create Git branch with current changes]] | * [[Create Git branch with current changes]] | ||
+ | |||
== See also == | == See also == |
Advertising: