Add this to your ssh config file ( which is located in %USERPROFILE%\.ssh\config
) or create one if it's missing:
Host *
ProxyCommand "C:/Program Files/Git/mingw64/bin/connect.exe" -H {proxyserver}:{port} %h %p
or (for specific host name)
Host gitlab.com