Whenever I "synchronize" (pull, push) my repository in Visual Studio, I notice the git-askpass.exe
window pop up and ask me for my ssh private key passphrase for my git repository. That's fine, but I was wondering whether there is a way to get it to work with ssh-agent.exe
.
When starting my git bash interpreter, I always also start its own ssh-agent.exe
(it's in Program Files/git
as opposed to Visual Studio's Program Files (x86)/Microsoft Visual Studio/2017/Professional/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/Git/mingw32/libexec/git-core
) and ssh-add.exe
my private key so that it asks me once for passphrase and then stops bothering me. From Visual Studio I always have to reenter the passphrase for my private key upon "sync-ing" the projects. Is there any way to slipstream this?
I was thinking of deleting that whole Visual Studio folder and creating a hard link towards the Git for Windows folder...
There's also Connect to Git repository with SSH using Visual Studio 2017 which doesn't feel like it covers my case.