Search code examples
gitintellij-ideaversion-control

Intellij is not able to remember my git credentials


I use Git Bash Desktop App with Intellij ide and our projects git repository hosted on TFS. I need help in fixing or Disabling Auto git fetch in intellij idea. As it keeps asking me for entering password every 15-20 minutes, however I can see credentials stored for git under windows credential manager vault.

Intellij popup I keep getting

Windows Git credential manager


Solution

  • Simply follow those steps and you will set up your ssh key in no time:

    Generate a new ssh key (or skip this step if you already have a key)

    # open git bash or terminal 
    ssh-keygen
    
    • Once you have your key set in home/.ssh directory (or Users/.ssh under windows), open it and copy the content

      # get the ssh-key content
      cat ~/.ssh/id_rsa.pub
      
    • copy this key to your git lab account

    • Get the ssh URL of your repository and update it in IntelliJ

    Now you can use ssh instead of https