Is it possible to have different .gitconfig
files at the root level of multiple folders? I use a different email address for work repositories and personal repositories, and it's difficult to always remember to set my email on each repository individually.
What I would like is something like the following:
git/
├── work/
│ ├── .gitconfig (with user.email set to my work email)
│ ├── app1/
│ ├── app2/
└── home/
├── .gitconfig (with user.email set to my home email)
├── app3/
└── app4/