2018/04/17

git-svn


检索svn
git svn clone --username=cc svn://fhnwsvn.fme.com.cn:3691/Code/8000/

提交更改到本地库
git add .
git commit -m "提交更改内容"

提交更改到远程svn库
git svn dcommit

从svn上更新代码, 相当于svn的update
git svn rebase

如果更新了代码出现了冲突,请修改完冲突后重新进行

git add .
git commit -m "更改冲突"
git svn rebase --continue
git dcommit

sourcetree 使用git-svn,如果出现推送报错

can't locate svn/core.pm in @inc (you may need to install the svn::core modul......

进入终端设置参数即可

sudo mkdir /Library/Perl/5.18/auto
sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.18/darwin-thread-multi‌-2level/SVN /Library/Perl/5.18/darwin-thread-multi-2level
sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.18/darwin-thread-multi‌-2level/auto/SVN /Library/Perl/5.18/auto/