当我尝试推送到 Heroku 时,收到以下错误消息。
[first_app]$git push heroku master
fatal: I don't handle protocol 'git@heroku.com:yourhttp'
然后我查看了我拥有的不同版本的 Heroku,似乎不止一个,所以我尝试删除它,但收到了另一条错误消息。
[first_app]$ git remote set-url --delete heroku git@heroku.com:yourhttp://still-lake-3136.herokuapp.com/.git
fatal: Will not delete all non-push URLs
我搜索了类似的错误消息,但没有找到任何可以解决此问题的信息。非常感谢您的帮助。
这是我的配置文件:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[remote "origin"]
url = git@github.com:wongsteven/first_app.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "heroku"]
url = git@heroku.com:yourhttp://still-lake-3136.herokuapp.com/.git
fetch = +refs/heads/*:refs/remotes/heroku/*
[heroku]
remote = heroku
not able to push to heroku | git error: cannot handle https | heroku + git submodule needs authentication | error: "fatal: I don't handle protocol ``git` when using bundle install | Git/GitHub can't push to master
最佳答案
在 Git 存储库的 url 周围加上引号(这对我有用。我使用的是 Windows 8.1)
关于git - 致命的 : I don't handle protocol,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17375402/