在sourcetree中使用svn

摘录别人遇到的问题

我也同样遇到

检出是svn库

1
git svn clone https/svn+ssh://path/to/svn

使用sourcetree

添加版本库目录到sourcetree

问题1 sourcetree执行命令报错

1
Can’t locate SVN/Core.pm in @INC (you may need to install the SVN::Core module)

解决办法 两种

  1. 么用过,自行尝试 参考资料 来源

    1
    2
    sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.18/darwin-thread-multi-2level/SVN /System/Library/Perl/Extras/5.18/SVN
    sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.18/darwin-thread-multi-2level/auto/SVN/ /System/Library/Perl/Extras/5.18/auto/SVN
  2. 修改sourcetree使用的git为系统安装版本

    问题2 验证身份出问题

就是无法验证身份信息(尤其是在mac下将密码写入到keychain后)
Changing password in SourceTree with Git-SVN
参考资料如上。防止国内用户无法访问 摘录如下

1
So I recently changed my AD password at work and using SourceTree for Git-SVN. It works well for me. I noticed that I could not push my commits because of password failure. So I googled. Found out that Git-SVN uses your existing SVN setup. On a Mac, you can change your password if you had it stored in plain text: ~/.subversion/auth/svn.simple. There should be a few files there. You can simply use a commandline text editor to change your password. If you didn’t store you password in plain text, open up Keychain. Select the “login” keychain and “password” under category. Find your password and double click it, check the “Show password” checkbox, authenticate and change it! Done.

我的解决办法是

打开 keychain ,点击 左侧上方的 登录,点击左侧下方的密码,在右侧找到你的svn提交域名双击打开对话框,看到有一个访问控制,改为允许所有程序访问。(这个是个人电脑的解决办法。如果不是个人电脑,需要选择允许访问的程序)。

  • Post author: hainuo
  • Post link: use-svn-in-sourcetree
  • Copyright Notice: All articles in this blog are licensed under BY-NC-SA unless stating additionally.