Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to push/pull with Gitkrakent to/from Heroku?

When I try to push/pull with Gitkrakent to/from Heroku, GitKraken tells me :

"Please log in to continue"

What is the requested "user/login" ? (The one from my personal Heroku account doesn't work"). Thanks a lot !

like image 647
LauGau Avatar asked Nov 13 '16 10:11

LauGau


People also ask

Can I git pull from Heroku?

Also note that Heroku should not be considered a git hosting. It means that it's extremely uncommon to perform a git pull from Heroku. Instead, you should use a git hosting (such as GitHub or BitBucket) to store your repository and only perform push to Heroku to deploy the application.

How do I push to a specific app in 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.


2 Answers

Your username is the email you used to login on heroku.

The password is your auth token. You can get this by running these in console:

heroku login To login

heroku auth:token To get your password for GitKraken

like image 119
A1.exe Avatar answered Oct 11 '22 22:10

A1.exe


Pointing remote to ssh protocol solved this for me.

https://git.heroku.com/{your-app}.git => [email protected]:{your-app}.git

Make sure you have same updated ssh keys in your account settings in Heroku related to that repository.

You may use ssh-agent to handle many keys

like image 38
Vladimir Nani Avatar answered Oct 11 '22 21:10

Vladimir Nani