How to rebase all the commits from the beginning

后端 未结 5 832
北荒
北荒 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:55

    You could rebase and squash everything if you wanted to (except the initial commit) but why bother? Simply delete your .git directory, run git init to recreate it, git add everything, and git commit to make a new initial commit.

提交回复
热议问题