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.
Username: the email you used for registering to Heroku
Password: the API key which Heroku provides you with, in your Account Settings on Heroku website
This worked for me
This happens because git and heroku aren't using the same
_netrc
file. This is something I'm trying to fix, but you can help me out by finding where your_netrc
file should be and where the CLI is putting it.The following will output potential sources of where the
_netrc
file could be:You could try to add the
_netrc
file into one of them to find the one that matches. Let me know which has the_netrc
file, and where you are able to put it and have git pick it up by not asking you for the username/password.Also check your
.gitconfig
to see if there are any git credential helpers, that may be causing an issue.What I did was open git bash instead of command prompt and type "git push heroku master". It worked :D
..after trying all the steps in many other tutorials.
Run the 3rd command in cmd in your userdir or the whole combo:
Pardon for the late reply, but I have fixed my problem two months ago. (Just haven't marked the question as answered. /noob)
SSH Fingerprint not authorized on Heroku after git restore
I fixed this by changing the http address to
ssh://git@heroku/...