Site Tools


blog:2016:04:24:gitconfig-supports-includes

.gitconfig Supports Includes

24 Apr 2016

I have this .gitconfig sharing with my team, but I have to remove user section / gpg sign key / github credentials before sending out, I wish there was an option to include options from separate file, and there is! Please see https://git-scm.com/docs/git-config#_includes, you can add following to .gitconfig:

[include]
    path = ~/.gitconfig.local

Then move all your credentials to .gitconfig.local.

blog/2016/04/24/gitconfig-supports-includes.txt · Last modified: 27 Apr 20 by dcai