小编Ste*_* W.的帖子

致命的:我不处理协议

当我尝试推送到Heroku时,我收到以下错误消息.

[first_app]$git push heroku master
fatal: I don't handle protocol 'git@heroku.com:yourhttp'
Run Code Online (Sandbox Code Playgroud)

然后我看看我拥有的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
Run Code Online (Sandbox Code Playgroud)

我搜索了类似的错误消息,但无法找到任何东西来解决这个问题.非常感谢您的帮助.

这是我的配置文件:

[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
Run Code Online (Sandbox Code Playgroud)

无法推送到heroku | git错误:无法处理https | heroku + git子模块需要身份验证 | …

git heroku

9
推荐指数
2
解决办法
3万
查看次数

标签 统计

git ×1

heroku ×1