Heroku: Username for 'https://git.heroku.com': git

enter image description here

I am trying to test remote git on heroku:

$ heroku auth:logout
Local credentials cleared.

$ heroku auth:login
Enter your Heroku credentials.
Email: ***@gmail.com
Password (typing will be hidden):
Authentication successful.

$ git remote
heroku
origin

$ git remote show heroku
Username for 'https://git.heroku.com':
Password for 'https://git.heroku.com':
remote: !       WARNING:
remote: !       Do not authenticate with username and password using git.
remote: !       Run `heroku login` to update your credentials, then retry the git command.
fatal: Authentication failed for 'https://git.heroku.com/***-1909.git/'

This error is mentioned in the heroku docs in the screenshot above at https://devcenter.heroku.com/articles/git , but I'm not sure what to do next to this.

+4
source share
1 answer

This is what worked for me.

$ heroku auth:token

Use the result as a password when prompted.

+20
source

All Articles