您的位置:首页 > 编程语言

如何使用git svn 命令下载svn仓库的代码

2016-05-13 15:29 651 查看
如何使用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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  git-svn git svn dcommit