在Bitbucket Git存储库上链接最新的文件 [英] Link latest file on Bitbucket Git repository
问题描述
我在Bitbucket上有一个公共的Git仓库。我想链接Read-Me文件的最新版本。这里是修订/提交的链接:
https://bitbucket.org/wordless/thofu-interpreter/raw/5bfc37864c5d/ThoFu%20Interpreter/ReadMe.txt
我尝试使用提示和默认替换版本号,但它不起作用。 是否有任何方法可以获得永久链接到我的最新文件? 解决方案
/ p>
在url中使用 master
(这似乎起作用):
https://bitbucket.org/wordless/thofu-interpreter/raw/master/ThoFu%20Interpreter/ReadMe.txt
另一个想法是为您的项目创建一个wiki页面,然后使用wiki的功能链接到最新版本的文件:
<<<文件路径/ to / file [revision] [linenumber]>>
只要省略版本号和行号参数,它们就是可选的。
然后,请参阅您希望链接到读取文件的其他地方的wiki页面。
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?
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.
这篇关于在Bitbucket Git存储库上链接最新的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!