Explanation
Xcode comes bundled with it's own version of git. In most cases this seems to work fine.
In some scenarios I've found that Xcode is unable to bypass an authenticated proxy to fetch swift packages through ssh. In this case I run the following command to use my system git which will then also use my system in build ssh keys that I have registered against the ssh-agent.