mirror of https://github.com/CrimsonTome/tldr.git
git checkout: add example for creating new branch based on remote branch with different name (#2494)
parent
39b4dd2a99
commit
3bf256f6cb
|
@ -6,6 +6,10 @@
|
||||||
|
|
||||||
`git checkout -b {{branch_name}}`
|
`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:
|
- Switch to an existing local branch:
|
||||||
|
|
||||||
`git checkout {{branch_name}}`
|
`git checkout {{branch_name}}`
|
||||||
|
|
Loading…
Reference in New Issue