Change remote repository credentials (authenticati

2019-01-30 07:19发布

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.

14条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-01-30 08:03

For Mac users this could also be helpful:

Credentials are stored in Keychain Access.app. You can just change them there.

查看更多
三岁会撩人
3楼-- · 2019-01-30 08:05

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
查看更多
孤傲高冷的网名
4楼-- · 2019-01-30 08:06

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.

查看更多
Explosion°爆炸
5楼-- · 2019-01-30 08:08

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楼-- · 2019-01-30 08:08

IN Android Studio 2.3

  1. Open Setting (CTRL+ALT+S)
  2. Select Other Settings (at the end)
  3. select Bitbucket

Here you can change your new Password or User

查看更多
爷的心禁止访问
7楼-- · 2019-01-30 08:10

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.

Screenshot

查看更多
登录 后发表回答