I have msysgit installed, with OpenSSH. I am connecting to a gitosis repo. From the git bash, I have created a .profile file that runs ssh-agent (if not already
.profile
On Windows 10 this worked for me
touch ~/.profile
start ~/.profile
#! /bin/bash eval `ssh-agent -s` ssh-add ~/.ssh/*_rsa
This is based on this answer. The only difference is that .bashrc did not work, instead .profile worked.
.bashrc