Change remote repository credentials (authentication) on Intellij IDEA 14
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!
The easiest of all the above ways is to:
- Go to Settings>>Appearance & Behavior>>System Settings>>Passwords
- Change the setting to not store passwords at all
- Invalidate and restart IntelliJ
- Go to Settings>>Version Control>>Git>>SSH executable: Build-in
- Do a fetch/pull operation
- Enter the password when prompted
- Again go to Settings>>Appearance & Behavior>>System Settings>>Passwords
- This time select store passwords on disk(protected with master password)
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