'git push heroku master' is still asking for authentication

前端 未结 19 2621
囚心锁ツ
囚心锁ツ 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 05:44

    I had the same problem (git couldn't authenticate). It happend that GIT wants to read auth data from %HOME%/_netrc file and on Windows you don't have this variable (only %USERPROFILE% and %HOMEDRIVE% + %HOMEPATH%)

    i set HOME to %USERPROFILE% (the place where heroku saved _netrc file) and GIT started working

提交回复
热议问题