Git on Bitbucket: Always asked for password, even after uploading my public SSH key

前端 未结 15 1369
情书的邮戳
情书的邮戳 2020-12-22 17:32

I uploaded my ~/.ssh/id_rsa.pub to Bitbucket\'s SSH keys as explained, but Git still asks me for my password at every operation (such as git pull).

15条回答
  •  南笙
    南笙 (楼主)
    2020-12-22 18:16

    • Step 1: Install git-credential-winstore
      https://confluence.atlassian.com/bitbucketserver/permanently-authenticating-with-git-repositories-776639846.html

    • Step 2: git config --global credential.helper 'cache --timeout 3600'
      This will store your password for 1 hour

    • Step 3: Run a git command that will prompt you for your password and the credential will prompt and store your password

提交回复
热议问题