Skip to content

Instantly share code, notes, and snippets.

@theparticleman
Created September 1, 2020 22:35
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 theparticleman/90a79b5c2a2d1722ac7a0086dec4842a to your computer and use it in GitHub Desktop.
Save theparticleman/90a79b5c2a2d1722ac7a0086dec4842a to your computer and use it in GitHub Desktop.
Different email addresses for different repos in Git
# Originally from
# https://www.kevinkuszyk.com/2018/12/10/git-tips-6-using-git-with-multiple-email-addresses/
# and
# https://stackoverflow.com/questions/43919191/git-2-13-conditional-config-on-windows
[includeIf "gitdir:C:/code/"]
path = .gitconfig-emmersion
[includeIf "gitdir:C:/Users/Jon/Personal/"]
path = .gitconfig-personal
[user]
name = Jon Turner
[user]
email = jon.turner@emmersion.ai
[user]
email = theparticleman@gmail.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment