Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- create a branch via a hash:
- ```
- git branch <name> <commit-sha>
- ```
- create a branch using a symbolic reference:
- ```
- git branch <name> HEAD~3
- ```
- Checkout the branch when creating it:
- ```
- git checkout -b <name> <commit-sha or HEAD~3>
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement