Intellij 无法记住我的 git 凭据

saT*_*Tya 6 git version-control intellij-idea

我将 Git Bash 桌面应用程序与 Intellij ide 结合使用,并将我们的项目 git 存储库托管在 TFS 上。我需要帮助修复或禁用 intellij idea 中的 Auto git fetch。由于它不断要求我每 15-20 分钟输入一次密码,但是我可以看到在 Windows 凭据管理器库下为 git 存储的凭据。

我不断收到 Intellij 弹出窗口

Windows Git 凭证管理器

Cod*_*ard 4

只需按照以下步骤操作,您将立即设置 ssh 密钥:

生成新的 ssh 密钥(如果您已经有密钥,请跳过此步骤)

# open git bash or terminal 
ssh-keygen
Run Code Online (Sandbox Code Playgroud)
  • 一旦你设置了密钥home/.ssh directory(或 Windows 下的 Users/.ssh),打开它并复制内容

    # get the ssh-key content
    cat ~/.ssh/id_rsa.pub
    
    Run Code Online (Sandbox Code Playgroud)
  • 将此密钥复制到您的 git 实验室帐户

  • 获取存储库的 ssh URL 并在 IntelliJ 中更新它

现在您可以使用 ssh 代替 https