Change remote repository credentials (authentication) on Intellij IDEA 14

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

    None of above worked for me. Using Android Studio 3.5 Beta 4. I even selected "do not save, forget passwords after restart" in file>settings>appearance & behavior>System settings>password

    So What I did.

    VCS>git>remotes

    • remove the repo and add again.
    • will ask for credentials.
    • then try git fetch in terminal.
    • Will prompt for password.
    • Issue fixed. :D
    0 讨论(0)
  • 2020-12-12 12:57
    1. Go to [project]/.git directory.
    2. Open for edit 'config' file.
    3. In '[remote "origin"]' section find 'url' property and replace your old password with new one.
    4. Press Ctrl+T in Intellij IDEA to update project.
    0 讨论(0)
  • 2020-12-12 12:57

    The following approach worked for me:

    Create a new personal access token in GitHub and configure the connection in IntelliJ as per link: https://www.jetbrains.com/help/idea/github.html

    Then, on IntelliJ, Settings-Version Control-Git screen, unclick the "Use credential helper" option.

    Then do an restart with cache invalidation (File - Invalidate Caches / Restart - Invalidate and Restart)

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

    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.

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

    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

    0 讨论(0)
  • 2020-12-12 13:01

    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
    
    0 讨论(0)
提交回复
热议问题