'git push heroku master' is still asking for authentication

前端 未结 19 2577
囚心锁ツ
囚心锁ツ 2020-12-02 05:37

I have executed:

$ heroku login

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

$ git push heroku master
Usern         


        
相关标签:
19条回答
  • 2020-12-02 06:02

    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
    
    0 讨论(0)
  • 2020-12-02 06:03

    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.

    0 讨论(0)
  • 2020-12-02 06:04

    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.

    0 讨论(0)
  • 2020-12-02 06:05

    I have exactly the same problem. The reason in my case, I used accidentally window console instead of Git bash

    0 讨论(0)
  • 2020-12-02 06:06

    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

    0 讨论(0)
  • 2020-12-02 06:06

    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.

    0 讨论(0)
提交回复
热议问题