caipkw
Last Updated: February 25, 2016
·
539
· nicolaslazartekaqui

Git - Create branch specifying commit

git

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.