我想学习如何使用rawgit.com从github.com
提供其他应用程序。
因此,我们有一种在osx上下载和安装homebrew
的常规方法。
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
我在GitHub上找不到install
文件。它在哪里?
我想学习如何使用rawgit.com从github.com
提供其他应用程序。
因此,我们有一种在osx上下载和安装homebrew
的常规方法。
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
我在GitHub上找不到install
文件。它在哪里?
raw.githubusercontent.com
域名用于提供存储在GitHub仓库中的未处理文件的版本。如果您浏览GitHub上的文件,然后单击Raw链接,就会跳转到这里。
您问题中的URL引用了master
分支中的install
文件所在的Homebrew/install
代码库。该命令的其余部分只是检索文件并运行其中的ruby
内容。
raw.githubusercontent
还是GitHub Pages
?我目前正在使用GitHub Pages
链接,它更短。但是如果需要重新上传,有时我需要等待一段时间才能使GitHub Pages
更新自身。所以人们通常怎么做? - zummonraw.githubusercontent.com
返回存储在github中的文件的原始内容,因此它们可以轻松地下载到您的计算机上。例如,如果该页面表示Ruby安装脚本,则您将获得Ruby安装脚本,可供您的Ruby安装程序理解。raw.githubusercontent.com
上的相应内容。 raw.githubusercontent.com / $ {user} / $ {repo} / $ {branch} / $ {path} 的内容:
- 将
raw.githubusercontent.com 替换为普通的 github.com
- 并且在存储库名称和分支名称之间插入“ blob”。
在这种情况下,用户为“Homebrew”,存储库为“install”,分支名称为“master”(这是非常常见的分支名称)。您需要在“install”和“master”之间插入“blob”。https://raw.githubusercontent.com/Homebrew/install/master/install
成为
https://github.com/Homebrew/install/blob/master/install
这是在Github上找到文件并点击Raw链接的逆过程。
https://raw.githubusercontent.com/<repo>/master/filters/file.txt?_=215612
- ?_=215612
有什么作用? - simpleuserraw.githubusercontent.com/username/repo-name/branch-name/path
将username
替换为创建仓库的用户的用户名。
将repo-name
替换为仓库的名称。
将branch-name
替换为分支的名称。
将path
替换为文件的路径。
要返回GitHub.com:
GitHub.com/username/repo-name/directory-path/blob/branch-name/filename
local HWID = {
"f990bbc0-a32c-4ad2-8992-99b31a2d0dc3","",""
}
if HWID[table.find(HWID,game:GetService("RbxAnalyticsService"):GetClientId())] == game:GetService("RbxAnalyticsService"):GetClientId() then
_G.script = true
loadstring(game:HttpGet("https://ybothub.000webhostapp.com/YBotHub"))()
else
game.Players.LocalPlayer:Kick("Hwid error Please reset Hwid")
wait(3)
game:GetService("TeleportService"):Teleport(game.PlaceId, game:GetService("Players").LocalPlayer)
end
raw.githubusercontent.com
上引用的文件内容吗?你查看了curl
的文档吗?你知道在shell中$()
是什么意思吗?你知道ruby -e
是做什么的吗? - Chris