Skip to content

Instantly share code, notes, and snippets.

@skluck
Created April 23, 2020 21:01
Show Gist options
  • Save skluck/00c83c2ca18931858555dd0c20735e04 to your computer and use it in GitHub Desktop.
Save skluck/00c83c2ca18931858555dd0c20735e04 to your computer and use it in GitHub Desktop.
Setting up git identities
https://news.ycombinator.com/item?id=22672491
You can also do a per-directory _global_ git configuration, e.g.
in .gitconfig, you say:
[user]
name = Me Myself
email = personal@example.com
signingkey = D34DB44F
[includeIf "gitdir:~/src/github.com/work_org/"]
path = ~/.gitconfig_work
Then in ~/.gitconfig_work:
[user]
name = Me Myself
email = work@example.com
signingkey = D34DC0D4
[core]
sshCommand = ssh -i ~/.ssh/work_ed25519
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment