When you own multiple git accounts (e.g. work for multiple companies) you probably don´t want to change your main config file.
In git you can include a config based on the directory where the repository is stored.
And for all repositories under /Users/YOUR_USER/Projects/[SPECIAL]/
it will extend your main config with.gitconfig-special
which could look like this
P.S. this is also useful if you use another account e.g. for github
git — Mar 19, 2021