Last Updated: February 25, 2016
·
809
· nicolaslazartekaqui

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.