git checkout: add example for creating new branch based on remote branch with different name (#2494)
This commit is contained in:

committed by
Muhammad Falak R Wani

parent
39b4dd2a99
commit
3bf256f6cb
@@ -6,6 +6,10 @@
|
||||
|
||||
`git checkout -b {{branch_name}}`
|
||||
|
||||
- Create and switch to a new branch based on a specific reference (branch, remote/branch, tag are examples of valid references):
|
||||
|
||||
`git checkout -b {{branch_name}} {{reference}}`
|
||||
|
||||
- Switch to an existing local branch:
|
||||
|
||||
`git checkout {{branch_name}}`
|
||||
|
Reference in New Issue
Block a user