Run the following to set GIT_SSH required for git to use ssh-agent thus avoiding multiple prompts for password (which is less secure so take care)
[Environment]::SetEnvironmentVariable("GIT_SSH", "$((Get-Command ssh).Source)", [System.EnvironmentVariableTarget]::User)
run the following to ensure automatic startup
Get-Service ssh-agent | Set-Service -StartupType Automatic
use the following to set the correct ssh path for visual studio, it has issues with the copy running from C:\Windows\System32\OpenSSH
"\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\bin\git.exe" config --system core.sshcommand c:/Windows/SysNative/OpenSSH/ssh.exe