step1:From GitURL to SVNURL
点开"/jpeg"子文件,复制浏览器中的地址,如下:
https:// github. com/shanfl/collectcode/tree/3b09c/jpeg(链接加了左右空格,防止知乎智能识别链接。下同)
将"/tree/3b09c/"替换成"/trunk/",则新生成的新链接为:https:// github .com/shanfl/collectcode/trunk/jpeg
注意:这里根据分支的不同,通用的办法是将"/branches/branchname/"替换成"/trunk/"。例如:"/tree/master/" to "/trunk/" ; "/tree/develop/" to "trunck"
step2:svn checkout your code
svn checkout SVNURL
这里的SVNURL就是step1中生成的url
下载文件可以直接使用 wget