How to access full source of old commit in BitBucket?

前端 未结 10 585
梦如初夏
梦如初夏 2020-12-07 06:22

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?

10条回答
  •  再見小時候
    2020-12-07 07:29

    I was trying to figure out if it's possible to browse the code of an earlier commit like you can on GitHub and it brought me here. I used the information I found here, and after fiddling around with the urls, I actually found a way to browse code of old commits as well.

    When you're browsing your code the URL is something like:

    https://bitbucket.org/user/repo/src/
    

    and by adding a commit hash at the end like this:

    https://bitbucket.org/user/repo/src/a0328cb
    

    You can browse the code at the point of that commit. I don't understand why there's no dropdown box for choosing a commit directly, the feature is already there. Strange.

提交回复
热议问题