Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 394 Bytes

multiple-gitconfigs.org

File metadata and controls

10 lines (7 loc) · 394 Bytes

Multiple Gitconfigs

If you use the same computer for both personal and work git repositories, you probably want to use a different email address for each.

One solution for this is having multiple .gitconfig files that override each other based on the directory you’re in.

[includeIf "gitdir:~/Developer/work/"]
  path = .gitconfig-work