如何在BitBucket中访问旧提交的完整源代码? [英] How to access full source of old commit in BitBucket?
问题描述
我找不到或找不到有关如何以新的Bit Bucket格式访问旧提交源的文档.甚至有可能吗?
我了解您想通过BitBucket Web界面下载旧版本,而不使用Mercurial/Git客户端.
选中此相关问题.关于评论,有人说没有办法.幸运的是,这并不完全正确.
通过在BitBucket项目页面上导航,我没有找到下载任意版本的链接.有用于下载特定标签的链接,格式为:
https://bitbucket.org/owner/repository/get/v0.1.2.tar.gz
但是通过稍微调整上面的网址,通过提交哈希来更改标签名称,例如:
https://bitbucket.org/owner/repository/get/A0B1C2D.tar.gz
您实际上可以下载特定版本.
Rakka Rage 在评论中提到,用.zip
替换.tar.gz
也是可行的./p>
I can't figure out or find the documentation on how to access the source of an old commit in the new Bit Bucket format. Is this even possible anymore?
I understand you want to download an older version via the BitBucket web interface without using a Mercurial/Git client.
Check this related question. On the comments, someone says that there is no way to do that. Fortunately, that's not entirely true.
By navigating on BitBucket project pages, I found no link to download an arbitrary version. There are links to download specific tags, in the format:
https://bitbucket.org/owner/repository/get/v0.1.2.tar.gz
But by tweaking a bit the url above, changing the tag name by the commit hash, like:
https://bitbucket.org/owner/repository/get/A0B1C2D.tar.gz
You can actually download a specific version.
As mentioned by Rakka Rage in a comment, replacing .tar.gz
by .zip
works too.
这篇关于如何在BitBucket中访问旧提交的完整源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!