Add switch way to create a new branch
This commit is contained in:
parent
22770746d7
commit
f9de1883e5
|
@ -20,6 +20,7 @@ git checkout @{-1}
|
|||
|
||||
# Checkout and switch to a new branch.
|
||||
git checkout -b my_new_branch
|
||||
git switch -c my_new_branch
|
||||
|
||||
# Push the new branch to a remote.
|
||||
git push -u origin my_new_branch
|
||||
|
|
Loading…
Reference in New Issue