Change remote repository credentials (authentication) on Intellij IDEA 14

前端 未结 21 1247
陌清茗
陌清茗 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:49

    For MACOS users

    if you see credentials failed but you are sure that is is working previously then:

    probably you made a software update to the system. System uses git bundled with xcode. its better to open Xcode and click install extra components on startup of xcode. it will say installing components. when you accept the license agreement if will start working again.

    in short:

    open Xcode, install additional ompoenents. accept user licence agreement

    0 讨论(0)
  • 2020-12-12 12:51

    Go to VCS>Git>Remotes then remove your remote url from the list and add again. Git will ask for a password after next git operation (push, pull, etc). NOTE: Don't forget to specify username in url or you will get auth error.

    0 讨论(0)
  • 2020-12-12 12:51

    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

    0 讨论(0)
  • 2020-12-12 12:52

    In Intellinj IDEA 14, we can change the Git password by the following steps:

    From the menu bar :

    1. Select File -> Settings -> Appearance & Behavior -> System Settings .

    2. Choose Passwords.

    3. Click the 'Master Password' under 'Disk storage protection'.

    4. In the Password field, enter your old password. Enter your new password in the subsequent fields.

    5. Now the master password will be changed.

    0 讨论(0)
  • 2020-12-12 12:53

    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.

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题