Git - Create branch specifying commit
Using commit hash
$ git branch <branchname> <sha1-of-commit>
or using HEAD like reference
$ git branch <branchname> HEAD~3
In this last example, is created a branch three modifications less of the head.
Written by Nícolas Lazarte Kaqui
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#