如何创建从标记到GitHub原始文件的相对链接?
GitHub MD支持相对链接,例如从my如何创建从标记到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
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).
我在任何地方都没有发现这一点,而是通过实验发现的,所以在这里分享。对于这一重要问题/答案的看法如此之少,我感到惊讶