Behind a corporate proxy – Git

.gitconfig

[credential]
helper = manager
[url "https://"]
insteadOf = git:/
[url "https://github.com/"]
insteadOf = [email protected]:
[http]
proxy = http://username:[email protected]:xxxx
[https]
proxy = http://username:[email protected]:xxxx

If you are using macOS, change the credential from manager to osxkeychain.

[credential]
helper = osxkeychain