相关疑难解决方法(0)

如何将文件夹与现有的Heroku应用程序链接

我在GitHub上有一个现有的Rails应用程序并部署在Heroku上.我正在尝试建立一个新的开发机器,并从我的GitHub存储库中克隆了该项目.但是,我很困惑如何将此文件夹链接到Heroku.最初,我使用了heroku create命令,但显然我这次不想这样做,因为它会创建另一个Heroku实例.

git heroku

794
推荐指数
5
解决办法
23万
查看次数

为什么 git fetch 会因 https://github.com/mxcl/homebrew origin 的“无法解析主机:(nil)...”而失败?

我无法安装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)

git https github

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

git ×2

github ×1

heroku ×1

https ×1