mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 10:35:25 +02:00
git-branch: add example to specify starting point (#2563)
This commit is contained in:
parent
8a2f226987
commit
71af945cf2
1 changed files with 4 additions and 0 deletions
|
@ -14,6 +14,10 @@
|
|||
|
||||
`git branch {{branch_name}}`
|
||||
|
||||
- Create new branch based on a specific commit:
|
||||
|
||||
`git branch {{branch_name}} {{commit_hash}}`
|
||||
|
||||
- Rename a branch (must not have it checked out to do this):
|
||||
|
||||
`git branch -m {{old_branch_name}} {{new_branch_name}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue