In the Settings/Preferences dialog Ctrl+Alt+S , select Appearance and Behavior | System Settings | Passwords on the left. Select how you want IntelliJ IDEA to process passwords for Git remote repositories: In native Keychain: select this option to use native Keychain to store your passwords.
Press Ctrl+Alt+S to open the IDE settings and select Version Control | GitHub. Click Add account, and in the dialog that opens, click Sign up for Github. Register your account on the Sign up for GitHub page that opens. Return to the IntelliJ IDEA settings and specify your credentials.
To update your credentials, go to Control Panel → Credential Manager → Generic Credentials. Find the credentials related to your Git account and edit them to use the updated password. This should be the accepted answer if git config --list contains credential. helper=wincred .
The easiest of all the above ways is to:
Voila!
Note that this will not work if your password is in your URL itself. If that is the case then you need to follow the steps given by @moleksyuk here
You also choose to use the credentials helper option in IntelliJ to achieve similar functionality as suggested by Ramesh here
After trying several answers, I was finally able to solve this issue (on window 10),
>git fetch
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http://gitlab.abc.net/V4/VH.git/'
By updating the password stored in Git Credential Manger for Windows(GCM),
Control Panel->User Accounts -> Windows Credentials
There is an option to clear passwords
Doing the following steps helped in my case:
1) open Settings 2) go to Git and Uncheck "Use credential helper" checkbox 3) Do git pull 4) Enter password in the pop up dialog
Git operations will now work fine in IntelliJ!
Linux users (tested on ubuntu 14.04)
by default (on linux and mac) pycharm uses the OS's password manager. To access the passwords on ubuntu open the program "Passwords and Keys".
Once open filter on "idea" and edit the relevant passwords.
No need to restart pycharm for me.
Using pycharm 17.2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With