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

Justice McCullum May 13, 2015

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
Answer accepted
aMarcus
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 13, 2015

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.

3 votes
TimP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 13, 2015

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
TAGS
AUG Leaders

Atlassian Community Events