如何从github上拉取项目中的指定目录

2010开始,对于GitHub上的每一个Git版本库,现在都可以用SVN命令进行操作,而svn命令则是支持部分检出的。

方法如下:

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

  

原文地址:https://www.cnblogs.com/heaven-xi/p/11082214.html