Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhpStorm asks each time for a username and password for GitHub

I work with the operating system Linux-Mint and PhpStorm. Every time I make a push, fetch, pull etc. with PhpStorm, PhpStorm asks me for a username and password. I have already created a GitHub user in the PhpStorm settings, I have also created an SSH key and a personal token - unfortunately PhpStorm still asks for the data.

I tried the whole thing on a Windows 10 system. I was asked for my data only once, then entered it and it worked. Shortly after I got a notification from GitHub that a personal token was created.

Why doesn't this work with Linux (Mint)? Who can help me?

like image 438
user11274144 Avatar asked Oct 31 '25 03:10

user11274144


1 Answers

For me what worked is, setting token auth in git repo. Set origin with following

git remote set-url origin https://[TOKEN]@github.com/[PATH TO REPO].git

Now Github doesn't support password auth, so this is the preferred way.

If you don't have the token already then need to set that in profile, for that you can follow the guide https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token

like image 95
APu Avatar answered Nov 03 '25 08:11

APu