在github单独下单某个文件夹

很多人会遇到这样的情况:在github上看到某个优秀的项目里的某个子项目,想down到自己的本地,于是通过git clone或者直接下载整个项目,然而小项目还好,但是网速100多KB对于大项目就无能为力了。

例如:想下载“flask项目”整个文件夹。

在github单独下单某个文件夹解决方法:

1.复制当前网址:https://github.com/NaroisCool/learingnote/tree/master/flask

2.将其修改为SVNURL,即把/tree/master改成/trunk,一般的,将”/branches/branchname”替换成”/trunk”。

SVNURL= https://github.com/NaroisCool/learingnote/trunk/flask

3.sudo apt install subversion 安装SVN

4.svn checkout SVNURL 将文件夹克隆到本地在github单独下单某个文件夹