在Intellij IDEA 14上更改远程存储库凭证(身份验证) [英] Change remote repository credentials (authentication) on Intellij IDEA 14

查看:700
本文介绍了在Intellij IDEA 14上更改远程存储库凭证(身份验证)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我出于安全原因最近更改了我的Bitbucket密码。但是,IntelliJ没有将我的存储库更新为新凭据,因此它阻止我将任何内容拉到/推送到我的存储库。我没有使用任何插件,只是在IDE内部集成了VCS操作。



每当我拉/推时,都会弹出:


致命:验证失败,因为 https:/ /momothereal:xxxxxxxxxxxx@bitbucket.org/team/repo.git/


其中 xxxxxxxxxxxx 是我的旧密码。我认为用正确的密码改变这个远程地址会修复它,但我无法找到在哪里这样做。 解决方案

最简单以上所有方法都是:


  1. 转至设置>>外观&行为>>系统设置>>密码

  2. 将设置更改为不存储密码

  3. 使无效并重新启动IntelliJ

  4. 执行提取/拉取操作

  5. 提示时输入密码

  6. 再次转至设置>>外观&行为>>系统设置>>密码

  7. 这次在磁盘上选择存储密码(使用主密码保护)

Voila!



请注意,如果您的密码位于您的网址本身中,则此功能无效。如果是这种情况,那么您需要按照@moleksyuk 这里给出的步骤


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.

解决方案

The easiest of all the above ways is to:

  1. Go to Settings>>Appearance & Behavior>>System Settings>>Passwords
  2. Change the setting to not store passwords at all
  3. Invalidate and restart IntelliJ
  4. Do a fetch/pull operation
  5. Enter the password when prompted
  6. Again go to Settings>>Appearance & Behavior>>System Settings>>Passwords
  7. 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

这篇关于在Intellij IDEA 14上更改远程存储库凭证(身份验证)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆