'git push heroku master' is still asking for authentication

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

    To generate a long term heroku token use:

    heroku authorizations:create
    

    Sample Output:

    Creating OAuth Authorization... done
    Client:      
    ID:          XXXXXXXX-XXXX-4c9c-85f2-554f0f0c14fa
    Description: Long-lived user authorization
    Scope:       global
    Token:       XXXXXXXX-XXXX-4ad5-ac64-44bbc01c2d95
    Updated at:  Wed Mar 04 2020 12:00:00 GMT+0000 (Greenwich Mean Time) (less than a minute ago)
    

    Then use the following info for git:

    username: blank (type the word blank)
    pass: XXXXXXXX-XXXX-4ad5-ac64-44bbc01c2d95
    

提交回复
热议问题