Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. create a branch via a hash:
  2. ```
  3. git branch <name> <commit-sha>
  4. ```
  5.  
  6. create a branch using a symbolic reference:
  7. ```
  8. git branch <name> HEAD~3
  9. ```
  10.  
  11. Checkout the branch when creating it:
  12. ```
  13. git checkout -b <name> <commit-sha or HEAD~3>
  14. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement