'git push heroku master' is still asking for authentication

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

    First find the _netrc file that is created by heroku. In windows it can be found in C:\Users\User Name\_netrc.

    That file contains credentials for git.heroku.com

    machine git.heroku.com
         login abcd123@gmail.com
         password xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    

    Use that login and password when ask for authentication after $ git push heroku master command

提交回复
热议问题