Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在GitHub问题中引用文件?_Github_Github Flavored Markdown - Fatal编程技术网

如何在GitHub问题中引用文件?

如何在GitHub问题中引用文件?,github,github-flavored-markdown,Github,Github Flavored Markdown,在GitHub问题中,我是否可以直接在问题中引用存储库中的文件并使其自动链接?您只能自动链接到文件 另请注意,链接时最好使用散列,以使其“经得起未来的考验”。 例如: 不过,您可以做的是在最后添加#l38以直接链接到一行:https://github.com/antirez/redis/blob/3244d8b/MANIFESTO#l28显然,使用大写字母L很重要,因此:#L38。或者更简单——在浏览回购协议时,只需单击左侧的选定行号并复制URL:)使用。/blob/master。例如:[/sr

在GitHub问题中,我是否可以直接在问题中引用存储库中的文件并使其自动链接?

您只能自动链接到文件

另请注意,链接时最好使用散列,以使其“经得起未来的考验”。 例如:


不过,您可以做的是在最后添加
#l38
以直接链接到一行:
https://github.com/antirez/redis/blob/3244d8b/MANIFESTO#l28
显然,使用大写字母L很重要,因此:
#L38
。或者更简单——在浏览回购协议时,只需单击左侧的选定行号并复制URL:)使用
。/blob/master
。例如:
[/src/file.js](../blob/master/src/file.js)
@laggingreflection注释必须是可接受的答案。谢谢。或者使用../tree/master。例如:[/src/file.js](../tree/master/src/file.js)为什么这是离题的?这显然是关于“主要用于编程的工具”
http://github.com/antirez/redis/blob/3244d8b/MANIFESTO