Skip to content

Instantly share code, notes, and snippets.

@dcchambers
Created July 31, 2020 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcchambers/b74e4f793d2d85320119301c8dc27a3c to your computer and use it in GitHub Desktop.
Save dcchambers/b74e4f793d2d85320119301c8dc27a3c to your computer and use it in GitHub Desktop.
Git Config to handle multiple email addresses.
[user]
name = Dakota Chambers
email = REDACTED
[core]
ignorecase = false
[url "ssh://git@github.com/"]
insteadOf = https://github.com/
# Load Zendesk specific config
[includeIf "gitdir:~/Code/zendesk/"]
path = .gitconfig-zendesk
## .gitconfig-work will have updated email in it like so:
## [user]
## email = workemailaddress@work.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment