Github下载文件夹为zip [英] Github download folder as zip

查看:623
本文介绍了Github下载文件夹为zip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何为我的Github存储库的访问者提供一个链接,以便将我的存储库的构建文件夹下载为zip文件?该文件夹包含应用程序所需的可执行文件,着色器和纹理。



当然,我可以手动构建该目录的zip文件,并将其添加到存储库。但是,这会导致冗余文件,更大的大小和每个提交的不必要的工作



所以有一种方法来压缩和下载一个特定的文件夹Gitub上的git存储库的内容?可能Github有能力已经?

解决方案

更新2013年7月:



正如我在,这将允许你uplad一个二进制,让你的用户得到(不要让你的git repo大小增长)。



所以你需要将另外一个外部(二进制)存储库中的二进制文件存储( Nexus ,或亚马逊s3服务或...)


How can I provide visitors of my Github repositories a link to download the builds folder of my repository as zip file? The folder contains a executable, shaders and textures needed by the application.

Of course I could manually build a zip file of that directory and add that to the repository. But that results in redundant files, bigger size and unnecessary work for each commit.

So is there a way to zip and download a specific folder and its content of a git repository on Github? Maybe Github has the ability already?

解决方案

Update July 2013:

As I mention in "Releasing a build artifact on github", you can define a release and upload binaries attached to that release!


Original answer (January 2013)

No, you cannot do it with GitHub alone.

And GitHub recently got rid of its upload feature, which would have allowed you to uplad a binary for your user to get (without making your git repo grow in size).

So you need to store said binary in another external (binary) repository (Nexus, or Amazon s3 service, or...)

这篇关于Github下载文件夹为zip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆