The easiest way to force pagent is to use its ssh service for other programes: plink.exe
plink.exe
git config --global core.sshCommand '"C:\Program Files\PuTTY\plink.exe"'