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
Answer accepted

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'.



Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

266 views 0 12
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