How to rebase all the commits from the beginning

后端 未结 5 731
北荒
北荒 2021-01-31 07:12

So I\'m migrating from svn (code.google.com) to git(github).

I\'ve imported my project from the svn repo, and it imported all the commit history along way. I\'m not real

5条回答
  •  旧时难觅i
    2021-01-31 07:47

    Find the hash of the commit that you want to start squashing from say abcd12 and then rebase against that hash specifically.

    git rebase -i abcd12
    

    You are using master to rebase against, which performs the rebase against the tip of the master branch.

提交回复
热议问题