I run Windows 10 with WSL. I have the desired behaviour on one computer, but cannot replicate elsewhere. Here's what I'm after:
- First time I run a remote git command using my ssh key, git prompts me for the passphrase
- Subsequent times no prompt, including in new terminal windows (I use ConEmu)
- When all console windows are closed, back to #1
Things I've tried:
- using eval $(ssh-agent), followed byssh-add; it will remember the passphrase, but if I put it in my~/.bash_profilethen it prompts me for every new console window, and I open a lot - many of which I'm not using git in.
- setting git config --global credential.helpertocacheorstore
- everything here
- using bash.exeandwsl.exeto getgit-credentials-manager.exeto work
Here's an example of what I've put in my ~/.gitconfig:
[credential]
   helper = "/mnt/c/Program\\ Files/Git/mingw64/libexec/git-core/git-credential-manager.exe"
I've installed the git credential manager from here and have also tried the main Git For Windows installation as an alternative.
How can I encourage it to remember my passphrase?
 
     
     
    