git

如何在github上下载某个项目的单独某个目录

github上的每一个git版本库都可以使用svn来操作,而svn是支持部分检出的,所以我们可以使用svn来下载。如果没安装svn,需要先安装一下。

例如我想下载我的practice项目的hash_table目录
(1)在github上点开这个目录,浏览器地址栏可以得到这个地址
        https://github.com/leon0625/practice/tree/master/hash_table
(2)将上面地址里的tree/master换成trunk,然后用svn co检出
svn co https://github.com/leon0625/practice/trunk/hash_table

原文地址:https://www.cnblogs.com/losophy/p/9902392.html