'git push heroku master' is still asking f

2019-01-12 17:26发布

I have executed:

$ heroku login

But when I try to push, I'm still asked for authentication:

$ git push heroku master
Username for 'https://git.heroku.com': <email>
Password for 'https://<email>@git.heroku.com':

Then I get a WARNING: Do not authenticate with username and password using Git.

I ran heroku login again and authenticated successfully but I still get the same failure.

I've checked the remote:

$ git remote -v
heroku https://git@heroku.com/appname.git (fetch)
heroku https://git@heroku.com/appname.git (push)

I've also generated a new public key, passed it to Heroku, and validated it: https://devcenter.heroku.com/articles/keys

I am on Windows 8, with Git 1.9.5.

14条回答
该账号已被封号
2楼-- · 2019-01-12 18:08

You have probably logged into heroku in two terminals, and if you try to run a command on first terminal, it will report such error, as new authentication was made in the second terminal.

Either login again with heroku login and run commands in that terminal, or run commands in that second window (if you have it still open).

查看更多
Bombasti
3楼-- · 2019-01-12 18:10

I got around this by logging in with the following :

username : blank

password : heroku auth token

where the auth token can be retrieved by $ heroku auth:token

查看更多
登录 后发表回答