git - 致命的 : I don't handle protocol

标签 git heroku

当我尝试推送到 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/

相关文章:

html - Heroku/Node.js - 部署不加载 CSS?

Django 'pip install django-heroku' (psycopg2) 错误阻止部署到 Heroku

postgresql - 低 Postgres 缓存命中率 - 数据大小或其他?

git - 从 Git 存储库部署 PHP 网站

没有经验的成员的 Git 工作流程

iphone - git 忽略 Mac OS X 上带空格的目录

Git 删除新的未跟踪文件

git - git 会复制我所有的文件吗?

javascript - 当我将 Angular 构建目录设置为/src/而不是/dist/时,为什么我的 MEAN 应用程序只能(部分)运行?

python - 英雄联盟。 New Relic Procfile 命令不起作用