SVN 存储库位于:svn://server/myPath/svn/repos
Git 存储库位于:git://server/myPath/git/repos
我正在尝试克隆 svn 项目,所以我使用了这个命令: git svn clone svn://zone.spip.org/spip-zone gitzone
我收到一条奇怪的错误消息:错误:git-svn 死于信号 6
SVN 存储库位于:svn://server/myPath/svn/repos
Git 存储库位于:git://server/myPath/git/repos
我正在尝试克隆 svn 项目,所以我使用了这个命令: git svn clone svn://zone.spip.org/spip-zone gitzone
我收到一条奇怪的错误消息:错误:git-svn 死于信号 6
如果您要将代码保留在 SVN 中,为什么不直接
git svn clone svn://server/myPath/svn/repos
正如@JohnNY 的回答所说,您可以这样做git svn clone
,然后通过git svn rebase
. 请阅读git svn
文档,与 SVN 交互时有几个有用的子命令(以及重要的警告!)。git svn clone
像糖蜜一样慢(是的,一个中等大小的存储库可能需要一天以上的时间!);如果有几个人需要访问,克隆一次并分发克隆存储库的压缩包。或者抛弃SVN。只是在说'。
如果您想克隆旧的 SVN 存储库,然后将其移动到 git 中,我这样做的原因如下。
git svn clone svn://server/myPath/svn/repos/trunk myproject.git
或者
git svn clone -s svn://server/myPath/svn/repos myproject.git
然后
cd myproject.git
我不想要历史,所以我删除了 git 文件夹
rm -rf .git/
然后
git init
git add .
git commit -a
git remote add origin git@git:<project>.git
git push -u origin master
你现在已经完成并准备将它用作 git