Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从Git到SVN_Git_Svn_Tortoisesvn_Bitbucket_Git Svn - Fatal编程技术网

从Git到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/

实际上,我在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/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