从GitHub直接下载某个文件(转直链)
以这个链接为例
https://github.com/userName/repoName/blob/branch/file.txt
- 将 github.com 替换为 raw.githubusercontent.com
- 去掉 /blob
最终的直链将会是
https://raw.githubusercontent.com/userName/repoName/branch/file.txt
参考来源
留言
發佈留言
歡迎在此寫下你的感想。