Git heroku cli登录显示错误的帐户信息

Git heroku cli登录显示错误的帐户信息,git,heroku,heroku-toolbelt,Git,Heroku,Heroku Toolbelt,当我使用个人帐户成功登录命令行时,请使用: $heroku login Enter your Heroku credentials. Email: ME@gmail.com Password (typing will be hidden): Authentication successful. 当我推动时: git push staging master 这给了我一个错误: ! Your account SOMEONE-ELSE@gmail.com does not have acces

当我使用个人帐户成功登录命令行时,请使用:

$heroku login

Enter your Heroku credentials.
Email: ME@gmail.com
Password (typing will be hidden):
Authentication successful.
当我推动时:

git push staging master
这给了我一个错误:

!  Your account SOMEONE-ELSE@gmail.com does not have access to MYAPP-staging.
!
!  SSH Key Fingerprint: FINGERPRINT_REMOVED
有趣的是,错误中显示的帐户是我使用web界面作为协作者添加的人。Heroku支持直到早上才上线,我无法推出任何代码。我可以重新配置我的环境等,但由于错误消息中的帐户从未在我的机器上使用过,我觉得这可能是heroku方面的错误

有什么想法吗?你以前见过这个吗


谢谢。

尝试重新生成ssh密钥


查看此页面:

您需要手动添加ssh密钥:

ssh-add -K ~/.ssh/id_rsa
然后注销并再次登录

heroku logout

heroku login
1。查看您拥有的所有帐户:
赫罗库账户
2.将适当的账户添加到当前回购:
heroku帐户:设置

你需要安装
账户
插件:这让我难堪了15分钟。非常感谢。
1. See all the accounts you are having:
heroku accounts

2. Add appropriate account to current repo:
heroku accounts:set <account_name>