我在GitHub上有一个现有的Rails应用程序并部署在Heroku上.我正在尝试建立一个新的开发机器,并从我的GitHub存储库中克隆了该项目.但是,我很困惑如何将此文件夹链接到Heroku.最初,我使用了heroku create命令,但显然我这次不想这样做,因为它会创建另一个Heroku实例.
我无法安装Homebrew(请参阅我在 apple.stackexchange.com 上的问题),所以我查看了https://raw.github.com/mxcl/homebrew/go Ruby 脚本并尝试了它运行的相同命令:
$ git init -q
$ git remote add origin https://github.com/mxcl/homebrew
$ git fetch origin master:refs/remotes/origin/master -n
error: Could not resolve host: (nil); nodename nor servname provided, or not known while accessing https://github.com/mxcl/homebrew/info/refs?service=git-upload-pack
fatal: HTTP request failed
Run Code Online (Sandbox Code Playgroud)
为什么我收到这个错误?
更新:(回应madhead的回答)
当我使用带有.git后缀的 URL 时,我遇到了同样的问题:
$ git init -q
$ git remote add origin https://github.com/mxcl/homebrew.git
$ git fetch origin master:refs/remotes/origin/master -n
error: Could not resolve host: (nil); nodename nor …Run Code Online (Sandbox Code Playgroud)