直接从github链接文件 [英] Linking files directly from github

查看:504
本文介绍了直接从github链接文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 < link rel =stylesheettype =text / cssmedia =all
href =https://raw.github.com/username/project/master/style.css/>
< script type =text / javascript
src =https://raw.github.com/username/project/master/script.js>
< / script>

我知道这是在Google代码上允许的。这种方式我不必担心更新本地文件。当然,为什么不呢?它甚至更新保存,除非有人在git中更改历史记录并强制推送。


Are we allowed to link files directly from github ?

<link rel="stylesheet" type="text/css" media="all" 
      href="https://raw.github.com/username/project/master/style.css"/>
<script type="text/javascript"
        src="https://raw.github.com/username/project/master/script.js">
</script>

I know this is allowed on google code. This way I don't have to worry about updating a local file.

解决方案

of course, why not? It's even update save unless someone changes history in git and forces a push.

这篇关于直接从github链接文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆