I have executed:
$ heroku login
But when I try to push, I\'m still asked for authentication:
$ git push heroku master
Usern
Renaming the
_netrc
file to.netrc
on Windows 7 in the userdir worked for me.
..after trying all the steps in many other tutorials.
Run the 3rd command in cmd in your userdir or the whole combo:
setx HOME %USERPROFILE%
cd %HOME%
REN _netrc .netrc
This topic is old, I know.
However, none of the previous solutions worked for me.
My problem was that "Windows Credentials" (os: Windows 10) had another credential previously associated with Heroku (company account) and used this instead of the new one (my personal account).
I had to go to: "Control Panel\All Control Panel Items\Credential Manager" (from Control Panel), and modify all the credentials: https://git.heroku.com (and all those associated with "heroku" word) with the account current.
However, the password I placed the Key API that is displayed in "Dashboard" of the site and the command works: git push heroku master.
7 hours that life will not give me back. :/
My 2 cents.
I had the same problem on windows and get it sorted just using the PSW available on the on _netrc file it can be found in C:\Users\User Name_netrc.
I hope it can help.
I have exactly the same problem. The reason in my case, I used accidentally window console instead of Git bash
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
It was possible to log in using Heroku API Key (Account Settings -> API Key) as mentioned by @andy mccullough
, however, logging in was needed every time.
git fetch
resolved the issue in my case.