user984621 user984621 - 2 months ago 76
Git Question

BitBucket - download source as ZIP

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.

Answer

First method

In the Overview page of the repo, there is a link to download the project.

Direct download of a repo


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