在网上看了多种下载方法,有的很复杂,有的不好用,经过查找相关资料,找到了一种方法,本人亲测有效。
例如:想要下载的github上的文件网址为:
https: //github.com/aymericdamien/TensorFlow-Examples/tree/master/examples/2_BasicModels
启动终端,将目录转换到想要将文件下载到的目录下,然后输入:svn checkout https: //github.com/aymericdamien/TensorFlow-Examples/trunk/examples/2_BasicModels
即将原网址中红色部分tree/master改为trunk
利用此下载方式,在下载的文件中会有一个隐藏的文件夹,<.svn>
我们还可以在终端中输入: svn export https: //github.com/aymericdamien/TensorFlow-Examples/trunk/examples/2_BasicModels
此时下载的是一个干净的副本。