English 中文(简体)
使用铁路应用程序将 git 推到 Heroko 出错
原标题:Error on git push to Heroku with rails app

当我执行 git 推到 Heroko 上的仓库时, 我收到以下错误 :

 Firing branch removed and pull event  has encountered a problem.

An internal error occurred during:  Firing branch removed and pull event .
java.lang.IllegalStateException

我试着去勾引它,但失败了 谁能帮上忙吗?

git 远程 -v 的输出为 :

heroku [email protected]:growing-night-6166.git (fetch)
heroku [email protected]:growing-night-6166.git (push) 
origin [email protected]:stuartnelson3/sample_app.git (fetch) 
origin [email protected]:stuartnelson3/sample_app.git (push)
问题回答

您似乎有两个指定的远程, 一个在 Github 上, 还有一个在 heroko 上。 您期望哪个 < code> git 推进 进行联系?

使用标准的配置, 打字 git push 将推到名为 black 的遥控器上, 在您的情况中, 这个遥控器位于 Github 。

要将 master 分支明确推进到 Heroko, 您将键入 :

git push heroku master

您的仓库中的每个分支配置可能会改变默认行为。 假设您正在 < code> master 分支工作, 您可以看到光 < code> git push 将使用此命令发送信件 :

git config --get-regexp  branch.master.* 

这将显示类似的东西:

branch.master.remote origin
branch.master.merge refs/heads/master

这将告诉您您的 < code> git push 是试图联系 Github 或 Heroku 。 无论哪种情况, 它看起来都是远程端的一个问题, 我会在合适的组织中联系支持 。

让我们知道,你试图推向哪个遥远的地方,我们可以尝试做一些额外的诊断。





相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签