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

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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

631 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot