'git push heroku master' is still asking for authentication

前端 未结 19 2657
囚心锁ツ
囚心锁ツ 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:00

    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:

    > echo %HOME%
    > echo %HOMEDRIVE%%HOMEPATH%
    > echo %USERPROFILE%
    

    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.

提交回复
热议问题