1. git svn clone 老的svn地址
2. cd 拉下来的代码目录,一般是上面地址的最后一个目录
3. git remote add origin 新的git地址
4. git push -u origin master
附:
git目录A迁移另外一个目录B下面去
1.先在本地拉好A的代码
2.在game下面建好新的地址
3.去本地A目录下面 cd .git
4.然后 git push --mirror 新的B地址
1. git svn clone 老的svn地址
2. cd 拉下来的代码目录,一般是上面地址的最后一个目录
3. git remote add origin 新的git地址
4. git push -u origin master
附:
git目录A迁移另外一个目录B下面去
1.先在本地拉好A的代码
2.在game下面建好新的地址
3.去本地A目录下面 cd .git
4.然后 git push --mirror 新的B地址
本文标题:svn代码迁移到git
本文链接:https://www.haomeiwen.com/subject/kchdmhtx.html
网友评论