當我嘗試推送到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文件。有沒有其他的方式來檢索這個文件?謝謝! –