macos系统下使用sourcetree工具拉取svn项目

��1.安装sourcetree工具 略

2.macos下载xcode

如果不是做ios开发,不用下载xcode,可以下载Command Line Tools(OS X Mountain Lion)独立安装包,需要ios的账户
地址:https://developer.apple.com/download/more/
下载包:Command Line Tools
如果下载xcode请到app store下载

3.安装xocde后执行如下命令

Command Line Tools独立安装包执行命令,这里的5.18,5.18.2版本根据sourcetree报的异常来修改版本
sudo ln -s /Library/Developer/CommandLineTools/Library/Perl/5.18/darwin-thread-multi-2level/auto/SVN /Applications/SourceTree.app/Contents/Resources/git_local/lib/perl5/site_perl/5.18.2/darwin-thread-multi-2level/auto/
sudo ln -s /Library/Developer/CommandLineTools/Library/Perl/5.18/darwin-thread-multi-2level/SVN /Applications/SourceTree.app/Contents/Resources/git_local/lib/perl5/site_perl/5.18.2/darwin-thread-multi-2level/
app store 安装 执行命令如下,版本问题同上
ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.16/darwin-thread-multi-2level/SVN /Applications/SourceTree.app/Contents/Resources/git_local/lib/perl5/site_perl/5.16.2/darwin-thread-multi-2level/
ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.16/darwin-thread-multi-2level/auto/SVN /Applications/SourceTree.app/Contents/Resources/git_local/lib/perl5/site_perl/5.16.2/darwin-thread-multi-2level/auto/

​4.看看sourcetree拉取svn吧 格式如下:  url:  svn://192.168.1.1/code

    原文作者:丿易小易
    原文地址: https://www.jianshu.com/p/a5a6374a1515
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞