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


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, because it is not remembered; so because there is no human interaction, it waits forever the password.
How can I force it to remember from


For Windows users, just a note that this is how I set up the Git Bash environment to log me in once when I start it up. I edit my ~/.bashrc file:

So when I start Git Bash, it looks like:

And now I can ssh to other servers without logging in every time.

Leave a Reply