git use ssh instead of https

C++
git config --global url.ssh://[email protected]/.insteadOf https://github.com/

Source

Also in C++: