Skip to content

Instantly share code, notes, and snippets.

@overtrue
Created February 22, 2019 02:10
Show Gist options
  • Save overtrue/82b9d3b1851d0277aae904dd3cfebaab to your computer and use it in GitHub Desktop.
Save overtrue/82b9d3b1851d0277aae904dd3cfebaab to your computer and use it in GitHub Desktop.
git conditional includes
[includeIf "gitdir:~/www/"]
path = .gitconfig-personal
[includeIf "gitdir:~/work/"]
path = .gitconfig-work
// .gitconfig-personal
[user]
email=xxxx@personal.com
name=xxxx
// .gitconfig-work
[user]
email=xxxx@work.com
name=xxxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment