svn to git

想把svn仓库转换成git.通过网上查阅资料,得知应使用命令

git svn clone https://xxx.googlecode.com/svn/ -s

如果是本地文件,则命令是

git svn clone file:///tmp/xxx-svn -s

在windows下操作出现了问题:

1.用TortoiseGit,URL处填写D:\Repositories\project1,出现错误:git did not exit cleanly (exit code 1)

2.用Git Bash,git svn clone file:///d:\repositories\project1,出现错误

Couldn't open a repository: Unable to open an ra_local session open repository 'file:///d%3A/repositories/SVN': Expected FS format '2';
found format '4' at /usr/lib/perl5/site_perl/Git/SVN.pm line 148

差了很多资料都没找到问题原因.

解决方案:

利用VisualSVN Server架设了SVN服务器,用TortoiseGit的Git Clone,URL处填写http://127.0.0.1/svn/project1/

等同命令:

git.exe svn clone "http://127.0.0.1/svn/project1/"  "G:\myproject\project1" -T trunk -b branches -t tags

 

 

 

转载于:https://www.cnblogs.com/nethirte/archive/2013/06/06/3122782.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值