raw.githubusercontent.com URL代表什么? [英] What do raw.githubusercontent.com URLs represent?

查看:293
本文介绍了raw.githubusercontent.com URL代表什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想学习如何使用 rawgit.com github.com中的其他应用程序提供服务. 因此,我们有一种通常的方法可以在osx上下载并安装homebrew.

I want to learn how to use rawgit.com to serve other applications from github.com. So we have a usual way to download and install homebrew on osx.

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

我在GitHub上找不到install文件.在哪里?

I can't find the install file on GitHub. Where is it?

推荐答案

raw.githubusercontent.com域用于提供存储在GitHub存储库中的文件的未处理版本.如果您浏览到GitHub上的文件,然后单击 Raw 链接,那么您将在那里.

The raw.githubusercontent.com domain is used to serve unprocessed versions of files stored in GitHub repositories. If you browse to a file on GitHub and then click the Raw link, that's where you'll go.

您问题中的URL引用了master分支中的 install文件 Homebrew/install存储库.该命令的其余部分仅检索文件并在其内容上运行ruby.

The URL in your question references the install file in the master branch of the Homebrew/install repository. The rest of that command just retrieves the file and runs ruby on its contents.

这篇关于raw.githubusercontent.com URL代表什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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