mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 09:15:31 +02:00
git checkout: add example for creating new branch based on remote branch with different name (#2494)
This commit is contained in:
parent
39b4dd2a99
commit
3bf256f6cb
1 changed files with 4 additions and 0 deletions
|
@ -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}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue