git-branch: add example to specify starting point (#2563)

This commit is contained in:
Waldir Pimenta 2018-11-08 09:49:50 +00:00 committed by Owen Voke
parent 8a2f226987
commit 71af945cf2

View File

@ -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}}`