So far I've nearly got the setup I want for using GIT (Windows). All works fine from Git bash with SSH, Passphrases, the SSH config file and SSH-Agent.
But I can only communicate with any remote Repo's if I start Visual Studio from GitBash terminal by running "code"
This will be because the environment from the bash terminal is passed on to VSCode. I'm thinking I can get VSCode to do this without having to initiate it from the GitBash terminal if I can get the SSH-AGENT environment variables added to the VSCode environment somehow.
i.e. SSH_AUTH_SOCK and SSH_AGENT_PID.
Could there be a way to set these environment variables on startup of Code? This is assuming the SSH-Agent is already running with pre-defined values for those two variables. It's there, I just need to tell Code where to find it.
I've configured most of my setup as per: http://letsdosql.blogspot.co.uk/2018/04/accessing-git-part-2-ssh.html
And with the ssh .config file: https://developer.atlassian.com/blog/2016/04/different-ssh-keys-multiple-bitbucket-accounts/
Thanks in advance!