raw.githubusercontent.com URL代表什么? [英] What do raw.githubusercontent.com URLs represent?
问题描述
我想学习如何使用 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屋!