branch from previous commit and split commit history
This question already has an answer here:
You can do a git checkout some_commit_sha
to go to a specific commit, and git checkout -b some_branch_name
to create a branch from a commit and go to that branch.
Putting the two of those together, you can do git checkout -b some_branch commit_2_sha
下一篇: 从之前的提交和拆分提交历史记录分支