选择合适的svn客户端工具
之前用git的时候是命令行和工具一起用。命令行比较简单方便一些,工具呢就是更加具体一些,结合使用更好。用了git后再用svn会感觉很不爽,只用命令行还感觉可以,最好也安装个客户端工具,看起来更加直观些。
SmartSVN收费,当然有破解版,但是安全不安全就不知道了。
TortoiseSVN没有Mac版的。
Sourcetree不支持svn,需要同时安装git-svn才能支持svn版本库,非要把svn库整成git的样子,感觉多此一举。
Versions界面比较粗糙,Cornerstone会好一些。
最后无奈只能选择使用Cornerstone。
Cornerstone安装
Cornerstone我安装了个破解版尝试了一下。
下载了Cornerstone安装后,打开时提示“文件已损坏,打不开,您应该将它移到废纸篓。”。在终端中或者偏好设置里打开"安全性与隐私"->“通用”->“任何来源”,勾选任何来源再次安装也是同样会提示已损坏。
这时候需要使用终端来执行这个软件试试看,终端输入sudo xattr -r -d com.apple.quarantine /Applications/Cornerstone.app
。
/Applications/Cornerstone.app是应用程序的位置,我们可以在终端输入sudo xattr -r -d com.apple.quarantine后在应用传给你续中找到需要打开的应用,将其直接拖拽到终端里即可,注意中间有一个空格。如果不清楚怎么做,看这里。
破解版试用就行了哈,请主动删除哈,支持试用正版。
Cornerstones使用中遇到的问题
Unable to connect to a repository at URL ‘file:///Users/xxx/Documents/work/xxx/xxx/xxx’
添加已有仓库File->Add Repository->Add Existing Repository,报错:
Description : Unable to connect to a repository at URL ‘file:///Users/xxx/Documents/work/xxx/xxx/xxx’
Suggestion : The operation could not be completed.
Description : Unable to connect to a repository at URL ‘file:///Users/xxx/Documents/work/xxx/xxx/xxx’
Status : 170013
换了一种方式添加已有仓库,File->Add Working Copy.