链接 Bitbucket Git 存储库上的最新文件 [英] Link latest file on Bitbucket Git repository
问题描述
我在 Bitbucket 上有一个公共 Git 存储库.我想链接最新版本的自述文件.这是修订/提交的链接:
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
我尝试用 tip 和 default 替换修订号,但是没有用.有什么方法可以获得我最新文件的永久链接吗?
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?
推荐答案
两个想法:
在 url 中使用 master
(这似乎有效):
Use master
in the url (this seems to work):
https://bitbucket.org/wordless/thofu-interpreter/raw/master/ThoFu%20Interpreter/ReadMe.txt
另一个想法是为你的项目创建一个wiki页面,然后使用wiki的功能使用以下语法链接到文件的最新版本:
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.
然后,请在您想要链接到自述文件的任何其他位置参阅 wiki 页面.
Then, refer to the wiki page everywhere else you'd like link to the read me file.
这篇关于链接 Bitbucket Git 存储库上的最新文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!