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

查看:34
本文介绍了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 引用了 install 文件中的master 分支 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天全站免登陆