How to download source code for a particular commit in Bitbucket?

https://bitbucket.org/USERNAME/PROJECTNAME/get/COMMITNUMBER.tar.gz

note the uppercase in the URL. you will need to change them COMMITNUMBER can be found under commit for that specific commit.


The url below should work. Just change required parts.

https://bitbucket.org/<username>/<reponame>/get/<commitCODE>.tar.gz

(without hypens)


To download a particular commit in Bitbucket go to : Repositories -> Select repository click on Downloads --> Branches. You will find all the commits made to the repository. Select which commit you want to download. To download as a zip file, click zip under download column.

Tags:

Bitbucket