github下载子目录文件(踩了一个坑)

想下载github上的一个子目录里的代码,不想整个库全搬下来,上网查了一下,大家的方法基本上都是使用svn工具,于是搬过来,看样子好像蛮好用。

比方说我在github上看到一个目录,如下:

https://github.com/tensorflow/models/tree/master/research/struct2depth

那么我们用svn工具需要修改下上面的地址:

https://github.com/tensorflow/models/trunk/research/struct2depth

其实很简单,就是把/tree/master改为/trunk
然后在终端里:

svn checkout https://github.com/tensorflow/models/trunk/research/struct2depth

然而在我mac上竟然出现了下面这个问题:

svn: OPTIONS of 'https://github.com/tensorflow/models/trunk/research/struct2depth': SSL negotiation failed: SSL error: tlsv1 alert protocol version (https://github.com)

谷歌了一圈,未果。但是想了下可能是工具不支持某种操作,通过贴子总结应该是mac自带的svn版本过低,于是只需要升级下svn就可以了,如果有会配置svn的可以自行解决,这里不做解释。

另svn下载地址:

https://www.wandisco.com/resource-library#!#osx

参考链接:

http://subversion.apache.org/faq#ssl-error-336032856
http://www.cnblogs.com/imhere/articles/4375067.html

你可能感兴趣的:(github下载子目录文件(踩了一个坑))