可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
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:
fatal: Authentication failed for 'https://momothereal:xxxxxxxxxxxx@bitbucket.org/team/repo.git/
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.
回答1:
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
- 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
回答2:
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
回答3:
There is an option to clear passwords
回答4:
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
回答5:
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.
回答6:
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 .
Choose Passwords.
Click the 'Master Password' under 'Disk storage protection'.
In the Password field, enter your old password
. Enter your new password
in the subsequent fields.
Now the master password will be changed.
回答7:
For the record, if you've already configured Git on your terminal, there's an option in preferences to use native Git rather than the built-in (bundled) one.
回答8:
- 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.
回答9:
For Mac users this could also be helpful:
Credentials are stored in Keychain Access.app.
You can just change them there.
回答10:
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.
回答11:
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
回答12:
In my case, I got a CAPTCHA error. If you get that, first logout/login to Bitbucket, Github, .... on the website and enter the required captcha.
After that, try again from intellij and it should prompt for another password.
回答13:
This is how I solved it on Windows. I have git installed separately, and Idea just picks git's options automatically (Default Idea config, as I would get from clean installer).
Open the project in the command line. Make some changes there. And commit and push files via git which is installed on my machine. During push it will open a windows asking me to enter username and password. After that, when I make a commit-push from idea, it will simply work.
回答14:
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