当我尝试推送到Heroku时,出现以下错误消息。致命:我不处理协议
[first_app]$git push heroku master
fatal: I don't handle protocol '[email protected]:yourhttp'
然后我看了看不同版本的Heroku的,我已经和似乎有不止一个,所以我尝试将其删除,但有另一条错误消息。
[first_app]$ git remote set-url --delete heroku [email protected]: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 = [email protected]:wongsteven/first_app.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "heroku"]
url = [email protected]: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/config'文件的内容?将其发布在答案中。 – Casper
嘿卡斯帕,起初,我很难找到文件“.git/config”。然后我可以通过在终端中输入“subl .git/config”来打开.git/config文件。有没有其他的方式来检索这个文件?谢谢! –