如何使用git svn 命令下载svn仓库的代码
参考链接  http://blog.chinaunix.net/uid-11639156-id-3077471.html

下载代码:
从指定的节点693检出代码:
git svn clone -r693:HEAD http://192.168.30.203/svn/trunk/1860c --username=liyaochuan

使用git svn rebase更新本地代码
使用git svn dcommit命令push代码

//==============================================================================

liyaochuan@dttzd-05:~/work/V$ git svn clone -r693:HEAD http://192.168.30.203/svn/trunk/1860c --username=liyaochuan
Initialized empty Git repository in /home/liyaochuan/work/V/1860c/.git/
Temp file with moniker 'svn_delta' already in use at /usr/share/perl5/Git.pm line 1024.

出现以上错误需要做如下修改:
参考:http://stackoverflow.com/questions/12700194/git-svn-clone-fails-on-mac-os-x-temp-file-with-moniker-svn-delta-already-in

liyaochuan@dttzd-05:~/work/V$ vi /home/liyaochuan/.subversion/servers 
在该文件加入
[global]
http-bulk-updates=on

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐