tags:

views:

83

answers:

1

hi there

If I have n commits, how can I branch from the n-3 commit? I can see the hash of every commit.

+6  A: 

You can create the branch via hash,

git branch branchname <sha1-of-commit>

or by using a symbolic ref.

git branch branchname HEAD~3
Charles Bailey