You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi, can't find how to do that in the web UI. It works for branches, not individual commits like Github does. I need to be able to share links to the source code of specific commits with the team. Thanks.
It's a little awkward, but it is possible.
1.) Navigate to the source code area of your repository in the Bitbucket UI.
2.) Use the branch/tag selector to change the branch to something different than the default. (This causes the URL to receive an "?at=refs%2Fheads%2F<BRANCH>" parameter).
3.) Change whatever is inside the "?at=" parameter to point to the commit-id you want to look at source code for (e.g., ?at=5557caa219b945d552dfa58d8f2c1ed91252924b).
Here's a live example you can play with, although the repository it points to had no files at that particular commit (I was doing a bunch of "git commit --allow-empty" invocations to create exotic commit graph structures for testing purposes):
the response is still helpful though the url changed a bit:
URL at commit:
Url at branch