Possible Duplicate / a more recent/less clear question
Branch from a previous commit using Git
I have a Git branch called jzbranch and have an old commit id: a9c146a09505837ec03b.
How do I create a new branch, justin, from the information listed above?
bdonlan
git checkout -b justin a9c146a09505837ec03b
This will create a new branch called 'justin' and check it out.
git branch justin a9c146a09505837ec03b
This just creates the branch without checking it out.
来源:https://stackoverflow.com/questions/7167645/how-do-i-create-a-new-git-branch-from-an-old-commit