Skip to content

Instantly share code, notes, and snippets.

@blndev
Last active April 3, 2023 06:43
Show Gist options
  • Save blndev/280841b0a00ef27d778b2033b26098d0 to your computer and use it in GitHub Desktop.
Save blndev/280841b0a00ef27d778b2033b26098d0 to your computer and use it in GitHub Desktop.
Git Configuration for Multiple Accounts at one User
[includeIf "gitdir:~/code/company.io/"]
path = ~/code/company.io/.gitconfig
[includeIf "gitdir:~/code/github.com/"]
path = ~/code/github.com/.gitconfig
[includeIf "gitdir:~/code/local/"]
path = ~/code/local/.gitconfig
[user]
name = Your Name
email = your.name@company.com
[user]
name = blndev
email = blndev@users.noreply.github.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment