2015-05-08 20 views
-1

我在github和heroku上有一个存储库,它们都已重命名。当我git push heroku master,我得到错误Heroku单帐户错误:“您的帐户[email protected]无权访问oldappname。SSH密钥指纹:XXX ...”

! Your account [email protected] does not have access to oldappname. 
! 
! SSH Key Fingerprint: XXX. . . 

感谢您的任何指针!我期待能够通过这个错误。

*一个类似的问题已经被多次询问,总是针对拥有多个Heroku帐户的用户,但我只有一个Heroku帐户。由于多帐户问题的解决方案(添加,删除ssh密钥)不能解决我的问题,所以我将这个问题作为自己的问题。

+0

我真的不明白downvote;有人可以解释吗? – rainbowsorbet

回答

0

我终于能够通过这个错误!在终端,我跑

git remote -v 

它生产

heroku [email protected]:rainbow.git (fetch) 
heroku [email protected]:rainbow.git (push) 
origin https://github.com/username/rainbows-rainbows.git (fetch) 
origin https://github.com/username/rainbows-rainbows.git (push) 

的应用程序名称不匹配! Heroku仍在使用旧名称检查git存储库。为了解决这个问题,我跑了

git remote rm heroku 

因此删除了不正确的heroku遥控器。在Heroku上,我删除了存储库(可能不是必需的,但我希望通过不完整的名称更改来消除重负)。因此,要在初始化的Heroku应用程序,我跑

heroku create newappname 

最后,我

git push heroku master 

成功。

相关问题