Skip to content

Instantly share code, notes, and snippets.

@da8
Last active February 4, 2022 13:29
Show Gist options
  • Select an option

  • Save da8/6c6610a538998e4528d409edc4c9df98 to your computer and use it in GitHub Desktop.

Select an option

Save da8/6c6610a538998e4528d409edc4c9df98 to your computer and use it in GitHub Desktop.
make git work with gitlab and github in parallel
to make git work with gitlab and github in parallel you need to change the config file ~/.ssh/config to the following:
Host gitlab.com
User git
Hostname gitlab.com
IdentityFile ~/.ssh/ID_RSA
TCPKeepAlive yes
IdentitiesOnly yes
Host github.com
User git
Hostname github.com
IdentityFile ~/.ssh/ID_RSA
TCPKeepAlive yes
IdentitiesOnly yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment