Skip to content

Instantly share code, notes, and snippets.

@benfoxall
Created March 6, 2023 14:10
Show Gist options
  • Save benfoxall/d784d02aadbdfc1b3270153f509b82d0 to your computer and use it in GitHub Desktop.
Save benfoxall/d784d02aadbdfc1b3270153f509b82d0 to your computer and use it in GitHub Desktop.
[user]
email = home@example.com
# override if a remote matches org name
[includeIf "hasconfig:remote.*.url:git@github.com:ORG-NAME/**"]
path = ~/.gitconfig.work
[user]
email = work@example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment