Skip to content

Instantly share code, notes, and snippets.

@mballoni
Created November 17, 2020 19:46
Show Gist options
  • Save mballoni/c987f2fe3c6cd8bf4dcf995e8a60ea4b to your computer and use it in GitHub Desktop.
Save mballoni/c987f2fe3c6cd8bf4dcf995e8a60ea4b to your computer and use it in GitHub Desktop.
git config email and username by directory
cd ~
cat .gitconfig
[user]
email = [email protected]
name = personal name
[includeIf "gitdir:~/repositories/someclient/"]
path = ~/repositories/someclient/.gitconfig
cd ~/repositories/someclient
cat .gitconfig
[user]
email = [email protected]
name = Some Client User Name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment