從GitHub上下載整個項目非常簡單,只需要git clone xxx就可以了,但是有時候我們只需要項目中的某個文件或者子文件夾,用SVN就可以實現。在Windows上裝個TortoiseSVN比較方便。
安裝過程很簡單,TortoiseSVN安裝完畢後,例如我們打開GitHub上的某一個項目:https://github.com/sunshineatnoon/Paper-Implementations
這個項目裏面有很多子文件夾,假如我們只要pix2pix這個文件夾裏的東西:
首先,點開pix2pix,在瀏覽器中地址是:
https://github.com/sunshineatnoon/Paper-Implementations/tree/master/pix2pix
第二步,將地址中的 /tree/master/ 換成 /trunk/ :
https://github.com/sunshineatnoon/Paper-Implementations/trunk/pix2pix
第三步,右擊電腦桌面,點擊SVNcheckout:
如果不是master分支 , 假如是channel分支中的文件,只需將/trunk/ 換成:
/branches/channel/
原文連接:https://blog.csdn.net/sunqiande88/article/details/80282913