Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.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 - Fatal编程技术网

如何创建从标记到GitHub原始文件的相对链接?

如何创建从标记到GitHub原始文件的相对链接?,github,Github,GitHub MD支持相对链接,例如从myREADME.MD我可以链接到code目录中的代码: To download these scripts, [click here](Code/myscript.sh), then right-click the **Raw** button and download it 如何使用相对链接(如code/myscript.sh)直接链接到原始内容(而不是绝对链接,如https://raw.githubusercontent.com/myrepo/top

GitHub MD支持相对链接,例如从my
README.MD
我可以链接到
code
目录中的代码:

To download these scripts, [click here](Code/myscript.sh), then right-click the **Raw** button and download it

如何使用相对链接(如
code/myscript.sh
)直接链接到原始内容(而不是绝对链接,如
https://raw.githubusercontent.com/myrepo/toplevel/subdir/subsubdir/myscript.sh
)?

raw=1
附加到您的URL

To download these scripts, [click here](Code/myscript.sh?raw=1).

我在任何地方都没有发现这一点,而是通过实验发现的,所以在这里分享。

对于这一重要问题/答案的看法如此之少,我感到惊讶