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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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...

1,768 views 1 5
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