Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Link latest file on Bitbucket Git repository

I have a public Git repository on Bitbucket. I want to link the latest version of a Read-Me file. Here's the link to a revision/commit:

https://bitbucket.org/wordless/thofu-interpreter/raw/5bfc37864c5d/ThoFu%20Interpreter/ReadMe.txt

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?

like image 947
Thomas Uhrig Avatar asked Jul 27 '12 16:07

Thomas Uhrig


People also ask

How do I link to a specific line in Bitbucket?

With just shift+click, a developer can select a range of lines, then add separate lines to the selection with command+click (or control+click), then copy the URL and share their selection with other developers. it CAN be done on a source page ( https://bitbucket.../src/... )


1 Answers

Two ideas:

Use master in the url (this seems to work):

https://bitbucket.org/wordless/thofu-interpreter/raw/master/ThoFu%20Interpreter/ReadMe.txt 

Another idea is to create a wiki page for your project, then use the wiki's functionality to link to the latest version of a file with this syntax:

<<file path/to/file [revision] [linenumber]>> 

Just omit the revision and line number parameters, they are optional.

Then, refer to the wiki page everywhere else you'd like link to the read me file.

like image 187
Sunil D. Avatar answered Sep 19 '22 08:09

Sunil D.