Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

enter image description here

I'm trying to check a git remote 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 referenced 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 fix this.

like image 402
user1592380 Avatar asked Jun 09 '15 16:06

user1592380


People also ask

What is Heroku Git URL?

In your heroku account, go to your app -> Settings. Under App Information, you'll find the heroku git url.

How do I use Git and Heroku?

To deploy your app to Heroku, use the git push command to push the code from your local repository's main branch to your heroku remote. For example: $ git push heroku main Initializing repository, done.

How do I check my Heroku login?

After you install the CLI, run the heroku login command. Enter any key to go to your web browser to complete login. The CLI then logs you in automatically. If you'd prefer to stay in the CLI to enter your credentials, run heroku login -i .

Is git necessary for Heroku?

Also, just because Heroku uses Git doesn't mean you have to have a Github account (since you mention having to have a premium account). All Github provides is an additional place to store your code if you are working on it in a team. There is absolutely NO REASON that you have to use github to use Heroku.


1 Answers

This is what worked for me.

$ heroku auth:token

Use the result as the password when prompted.

like image 155
mikeym Avatar answered Sep 19 '22 19:09

mikeym