2017-02-05 79 views
-2

我实际上在Bitbucket上有一个仓库,我想迁移到SVN系统。网上的大多数指南都是从SVN到GIT的,很少有相反的指导。从Git到SVN

我一直在使用乌龟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/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 

老是死机错误。任何人有更好的想法如何做到这一点?

+2

那么这些错误是什么? –

+0

@UweKeim无法创建会话:无法连接到URL'file:/// D:%5CRepositoryTest'的存储库:无法打开存储库'file:/// D:%CRepositoryTest'at/mingw64/share /第310行perl5/site_perl/Git/SVN.pm –

+0

执行第三步时崩溃; git svn init protocol:/// path/to/repo/PROJECT -s @UweKeim –

回答

0

至于您的评论说:file:///D:%5CRepositoryTest%5C\ URL编码,我说你做git svn init file:///D:\RepositoryTest -s,你应该做的git svn init file:///D:/RepositoryTest -s