Skip to content

Instantly share code, notes, and snippets.

@jonatan-ivanov
Created June 15, 2019 21:57
Show Gist options
  • Save jonatan-ivanov/6841e4081abff42c780fe3f9c7315c95 to your computer and use it in GitHub Desktop.
Save jonatan-ivanov/6841e4081abff42c780fe3f9c7315c95 to your computer and use it in GitHub Desktop.
multi-git

ssh-keygen -t rsa -C "email"

[pager]
diff = diff-so-fancy | less --tabs=1,5 -RFX
show = diff-so-fancy | less --tabs=1,5 -RFX
[includeIf "gitdir:~/GitHub/"]
path = ~/GitHub/.gitconfig
[includeIf "gitdir:~/git/"]
path = ~/git/.gitconfig
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_GH
IdentitiesOnly yes
Host github.enterprise.com
HostName github.enterprise.com
User git
IdentityFile ~/.ssh/id_rsa_EnterpriseGH
IdentitiesOnly yes
[user]
name = Jonatan Ivanov
email = email@git
[user]
name = Jonatan Ivanov
email = email@github
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment