git-branch: add example to specify starting point (#2563)
This commit is contained in:

committed by
Owen Voke

parent
8a2f226987
commit
71af945cf2
@@ -14,6 +14,10 @@
|
|||||||
|
|
||||||
`git branch {{branch_name}}`
|
`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):
|
- Rename a branch (must not have it checked out to do this):
|
||||||
|
|
||||||
`git branch -m {{old_branch_name}} {{new_branch_name}}`
|
`git branch -m {{old_branch_name}} {{new_branch_name}}`
|
||||||
|
Reference in New Issue
Block a user