branch from previous commit and split commit history

This question already has an answer here:

  • Move the most recent commit(s) to a new branch with Git 9 answers

  • 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

    链接地址: http://www.djcxy.com/p/4294.html

    上一篇: 如何将某些提交移动到git中的另一个分支?

    下一篇: 从之前的提交和拆分提交历史记录分支