How to prevent that the password to decrypt the private key has to be entered every time when using Git Bash on Windows?

后端 未结 7 2131
南方客
南方客 2020-11-28 17:20

I\'ve an automatic building service which download from a git private repository. The problem is that when it tries to clone repository it need to provide the password, beca

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 18:03

    This answer explains how to get the GitHub username and password to be stored permanently, not the SSH key passphrase.

    In Windows, just run

    $ git config --global credential.helper wincred
    

    This means that the next time you push, you'll enter your username and password as usual, but they'll be saved in Windows credentials. You won't have to enter them again, after that.

    As in, Push to GitHub without entering username and password every time (Git Bash on Windows).

提交回复
热议问题