Change remote repository credentials (authentication) on Intellij IDEA 14
I recently changed my Bitbucket password for security reasons. However, IntelliJ didn’t update my repository to the new credentials, so it stops me from pulling/pushing anything to my repository. I am not using any plugins for this, just the integrated VCS operations inside the IDE.
Every time I pull/push, this pops out:
Where xxxxxxxxxxxx is my old password. I think changing this remote address with the correct password would fix it, though I cannot find where to do so.
9 Solutions collect form web for “Change remote repository credentials (authentication) on Intellij IDEA 14”
The easiest of all the above ways is to:
- Go to Settings>>System>>Passwords
- Change the setting to not store passwords at all
- Do a fetch/pull operation
- Enter the password when prompted
- Again go to Settings>>System>>Passwords
- This time select store passwords on disk(protected with master password)
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
In Intellinj IDEA 14, we can change the Git password by the following steps:
From the menu bar :
Select File -> Settings -> Appearance & Behavior -> System Settings .
Click the ‘Master Password’ under ‘Disk storage protection’.
In the Password field, enter your
old password. Enter your
new passwordin the subsequent fields.
Now the master password will be changed.
This worked for me on Intellij 12:
Open settings -> passwords, select “Do not remember passwords” and apply/ok.
Do your VCS fetch/update/push/whatever and it should ask you for a password.
Check remember password and OK, it should do the VCS thing correctly.
Go back to settings -> passwords and switch it back to “Remember on disk”, then apply/ok.
- Go to [project]/.git directory.
- Open for edit ‘config’ file.
- In ‘[remote “origin”]’ section find ‘url’ property and replace your old password with new one.
- Press Ctrl+T in Intellij IDEA to update project.
Your best bet would be to remove the git remote entirely, and add it again. This can be done from the Settings window (search for “VCS Roots”).
I needed to change my user name and password in Intellij
Did it by
preferences -> version control -> GitHub
There you can change user name and password.
For Mac users this could also be helpful:
Credentials are stored in Keychain Access.app.
You can just change them there.
IN Android Studio 2.3
- Open Setting (CTRL+ALT+S)
- Select Other Settings (at the end)
- select Bitbucket
Here you can change your new Password or User
For Mac User Please Go to As Below:
(First of all you must have installed bitbucket plugin)
Android Studio -> Preference -> Other Settings -> Bitbucket
Now change your password and click on Test for verify it. Will also able to add SSH Key for login.
Also its depend on which plugin you used. Some have direct like
Android Studio -> Preference -> Bitbucket linky