svn迁移git:
- 将svn代码克隆到本地: git svn clone http://fakesvn.com/fakerepo/fakebranch --no-metadata
- 进入到项目文件夹,关联到git:git remote add origin http://fakegit.com/git/fakerepo.git
- 提交:git push -f origin master:fakebranch
git迁移git
- 克隆代码到本地:git clone -b fakebranch http://fakegit.com/git/oldrepo.git
- 解除与旧仓库的关联:git remote rm origin
- 关联新的仓库:git remote add origin http://fakegit.com/git/newrepo.git
- 提交:git push -f origin fakebranch