Change remote repository credentials (authentication) on Intellij IDEA 14

前端 未结 21 1244
陌清茗
陌清茗 2020-12-12 12: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 any

21条回答
  •  北海茫月
    2020-12-12 12:55

    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. Go to Settings>>Version Control>>Git>>SSH executable: Build-in
    5. Do a fetch/pull operation
    6. Enter the password when prompted
    7. Again go to Settings>>Appearance & Behavior>>System Settings>>Passwords
    8. 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

提交回复
热议问题