将svn仓库push到git server中

  1. 用git svn命令将仓库clone到本地,git svn clone svn://ip/svnproject
  2. 给本地仓库添加远程地址,git remote add origin [email protected]:gitproject.git
  3. 开始push,git push origin master
  4. 如果svnproject中有更新,git svn fetch
  5. 然后合并git-svn分支到master上,git merge master git-svn
  6. git push origin master

你可能感兴趣的:(git,git-svn)