如何在github上下载单个文件夹

如何在github上下载单个文件夹?

使用SVN即可

比如这个项目:https://github.com/facebook/infer ,我只想下载examples/android_hello这个文件夹怎么办?
先打开 examples/android_hello ,其URL为: https://github.com/facebook/infer/tree/master/examples/android_hello

/tree/master/换成/trunk/.变为https://github.com/facebook/infer/trunk/examples/android_hello

然后终端输入:svn checkout https://github.com/facebook/infer/trunk/examples/android_hello

PS:第一次使用的话,可能会出现下面这个提示:

R)eject, accept (t)emporarily or accept (p)ermanently?

输入P就行了.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容