BitBucket - 以 ZIP 格式下载源代码 [英] BitBucket - download source as ZIP
问题描述
我知道我可以通过 git clone
命令获取项目,但是有什么方法可以通过 Web 界面从
2016 年之前
第一种方法
在 repo 的概览页面中,有一个下载项目的链接.
<小时>第二种方法
转到下载 -> 分支 -> 下载所需的分支(如 .zip、.gz 或 .bz2).在那里你会找到所有标签的下载链接.链接将采用以下格式:
https://bitbucket.org/owner/repository/get/v0.1.2.tar.gz
稍微调整一下,您还可以通过将标签更改为提交哈希来访问任何修订版:
https://bitbucket.org/owner/repository/get/A0B1C2D.tar.gz
I know I can get the project through git clone
command, but is there any way, how to download the project through the web interface from BitBucket.org?
In the best way, I am looking for a way to download a project source as ZIP compress file.
For the latest version of Bitbucket (2016+), the download link can be found in the Download menu item.
Pre-2016
First method
In the Overview page of the repo, there is a link to download the project.
Second method
Go to Downloads -> Branches -> Download the branch that you want (as .zip, .gz or .bz2). There you'll find download links for all tags. The links will be in the format:
https://bitbucket.org/owner/repository/get/v0.1.2.tar.gz
By tweaking it a little bit, you can also have access to any revision by changing the tag to the commit hash:
https://bitbucket.org/owner/repository/get/A0B1C2D.tar.gz
这篇关于BitBucket - 以 ZIP 格式下载源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!