Last active
February 4, 2022 13:29
-
-
Save da8/6c6610a538998e4528d409edc4c9df98 to your computer and use it in GitHub Desktop.
make git work with gitlab and github in parallel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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