Last active
June 7, 2022 13:08
-
-
Save akhansari/80995fc5dc0f12ebf7ba38e7c7941a9e to your computer and use it in GitHub Desktop.
Multiple Git Configs
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
[core] | |
excludesFile = ~/.gitignore | |
[user] | |
name = My Name | |
[includeIf "gitdir:~/git/"] | |
path = ~/.gitconfig-work | |
[includeIf "gitdir:~/github/"] | |
path = ~/.gitconfig-home |
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
Host mydomain mydomain.com | |
HostName mydomain.com | |
IdentityFile ~/.ssh/id_rsa | |
Host github github.com | |
HostName github.com | |
IdentityFile ~/.ssh/id_rsa_home |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment