Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the Git credentials in PhpStorm?

Tags:

git

phpstorm

I have used another username and password to work on a project and now I need to log in with different username for same project. I tried to pull codes for the worked projects but it is not working, since my older username has been removed. I try to change credentials but I don't see any option in PhpStorm.

I tried following command but not working:

git credential-osxkeychain erase host=github.com protocol=https

Any help? (I'm working on MAC)

like image 577
Ratha Avatar asked Dec 28 '25 09:12

Ratha


1 Answers

I can't really answer for a MAC, but on Windows later version of Jetbrains' products store its credentials in a password vault.

In the case of PhpStorm 2019, it uses the KeePass database and the location of the DB can be found in Settings > Appearance & Behavior > System Settings > Passwords.

It's also possible that Git is configured differently can look at git config credential.helper to determine what your configuration currently is, being on a Mac it's probably configured with osxkeychain.

like image 153
codemonkee Avatar answered Dec 30 '25 23:12

codemonkee