GitHub 利用GitHub当做服务器~简单使用~

1、首先定位到需要访问的文件..

GitHub 利用GitHub当做服务器~简单使用~_第1张图片

2、获取URL链接

https://github.com/Forever2017/JokerKit/blob/master/README.md

3、修改

 https://github.com 修改为 https://raw.githubusercontent.com

4、大致结构是

https://raw.githubusercontent.com/账号名/仓库名/分支(master)/文件夹路径/文件名

5、这里使用的例子是

 https://github.com/Forever2017/JokerKit/blob/master/README.md

转换成

https://raw.githubusercontent.com/Forever2017/JokerKit/master/README.md

 这样就能够访问任意的文件,可以使用xml、txt、json文件当做远程服务器操作了。。 注意这里 私有 的工程不能访问

 

更多用法... 持续更新...

转载于:https://my.oschina.net/Forever2019/blog/3025482

你可能感兴趣的:(GitHub 利用GitHub当做服务器~简单使用~)