从Git到SVN
实际上,我在Bitbucket上有一个存储库,我想迁移到SVN系统。网络上的大多数指南都是从SVN到GIT的,很少有相反的指南 我一直在使用Ortoise SVN,并尝试了以下几种方法:从Git到SVN,git,svn,tortoisesvn,bitbucket,git-svn,Git,Svn,Tortoisesvn,Bitbucket,Git Svn,实际上,我在Bitbucket上有一个存储库,我想迁移到SVN系统。网络上的大多数指南都是从SVN到GIT的,很少有相反的指南 我一直在使用Ortoise SVN,并尝试了以下几种方法: 1. cd /path/to/git/localrepo 2. svn mkdir --parents protocol:///path/to/repo/PROJECT/trunk -m "Importing git repo" 3. git svn init protocol:///path/to/repo/
1. cd /path/to/git/localrepo
2. svn mkdir --parents protocol:///path/to/repo/PROJECT/trunk -m "Importing git repo"
3. git svn init protocol:///path/to/repo/PROJECT -s
4. git svn fetch
5. git rebase trunk
5.1 git status
5.2 git add (conflicted-files)
5.3 git rebase --continue
5.4. (repeat 5.1.)
6. git svn dcommit
总是因错误而崩溃。有人对如何做有更好的想法吗?正如你的评论所说的
file:///D:%5CRepositoryTest
和%5C
是\
的URL编码,我想说你做了git svn initfile:///D:\RepositoryTest-s
您应该在哪里执行git svn initfile:///D:/RepositoryTest -s
那么这些错误是什么?@UweKeim无法创建会话:无法连接到URL的存储库file:///D:%5CRepositoryTest“:无法打开存储库”file:///D:%CRepositoryTest”“在/第310行的mingw64/share/perl5/site_perl/Git/SVN.pm在执行第三步时崩溃;git svn initprotocol:///path/to/repo/PROJECT -s@UweKeim