Skip to content

Instantly share code, notes, and snippets.

@tillig
Created March 28, 2022 18:53
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 tillig/9e282a7370ba71bb7422cc49b60217c5 to your computer and use it in GitHub Desktop.
Save tillig/9e282a7370ba71bb7422cc49b60217c5 to your computer and use it in GitHub Desktop.
Conditional .gitconfig setup for separating personal from work settings.
git config -f ~/.gitconfig-personal user.name "Travis Illig"
git config -f ~/.gitconfig-personal user.email "tillig@paraesthesia.com"
git config --global includeIf.gitdir:~/dev/tillig/.path ~/.gitconfig-personal
git config --global includeIf.gitdir:~/dev/autofac/.path ~/.gitconfig-personal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment