How to rebase all the commits from the beginning

后端 未结 5 713
北荒
北荒 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条回答
  •  深忆病人
    2021-01-31 07:48

    git rebase -i --root will start an interactive rebase of all commits from the beginning.

    From there, you can squash all commits into one and/or perform other edits.

提交回复
热议问题