I have a public Git repository on Bitbucket. I want to link the latest version of a Read-Me file.

I tried to replace the revision number with tip and default, but it didn't work. Is there any way to get a permanent link to my latest files?

 

2 answers

1 accepted

4 votes
Accepted answer

Tip and Default are the reference names for Mercurial repositories. For a Git repository, you should be able to use any branch name or any tag name in place of the hash in the URL. This will follow the 'latest' revision on that particular reference. Note that depending on the tags and branches of a given repository, may not be the same as 'the most recent update to this file on another branch/tag'.

For example: https://bitbucket.org/wordless/thofu-interpreter/src/master/README.md will always link to the most recent revision of the README.md file on the master branch of that public repository.

They should replace the revision number with the name of their main branch, probably 'master' or 'develop'.

E.g.

https://bitbucket.org/atlassian/atlassian-connect/src/develop/README.md

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

415 views 5 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you