本文介绍了没有“zip下载”按钮下载源代码.zip在github上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从这里下载zip文件:
I want to download this source file in zip from here:
但没有Zip下载按钮。
but there is no "Zip Download" button.
这里有一个zip下载按钮:
there is a "zip download" button here:
但是我不想下载整个资料库,如何下载那个单一的android项目?
but I don't want to download whole repository, How can I download that single android project?
我研究了这个主题,但是我仍然无法将源文件下载为zip文件:
I studied this topics but still i can't Download source as zip file:
推荐答案
您无法从GitHub作为一个zip文件。
You can't download a subdirectory from GitHub as a zip file.
有些选项是
- 下载完整zip并手动提取您想要的子目录,或
- 使用
git
与稀疏检出,而不是作为zip文件下载。
- 这种方法 将整个存储库下载到
.git
目录中,但您的工作副本只会包含所需的文件和目录。
- download the full zip and manually extract the subdirectory that you want, or
- use
git
with sparse checkouts instead of downloading as a zip file.- This approach does download the entire repository into the
.git
directory, but your working copy will only contain the files and directories that you want.
有关稀疏检查的更多信息,请查看。
For more information on sparse checkouts have a look at this answer.
这篇关于没有“zip下载”按钮下载源代码.zip在github上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
- This approach does download the entire repository into the
- 这种方法 将整个存储库下载到