How to pull a BitBucket repository without access to hg

时光毁灭记忆、已成空白 提交于 2019-12-04 12:43:42
Ry4an Brase

What good would getting the repository be if you don't have mercurial installed and can't install it?

Do you instead mean get the files in a specific revision? If so you can easily do that using:

wget https://username:password@bitbucket.org/user/repo/get/REVISIONHASH.zip

I'm pretty sure you can put user/pass in the URL in the standard HTTP way.

Waldhorn

The recommended method for pulling a private Mercurial repo from Bitbucket is answered over here at a more recent SO post.

Here's the command:

curl --digest --user username:password https://bitbucket.org/user/repo/get/tip.zip -o test.zip

If you don't have mercurial available locally then you may as well pull the tarball instead, available behind the "get source" option towards the top-right corner of various pages, underneath "Forks/Queues".

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!