.gitconfig Supports Includes

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:

    path = ~/.gitconfig.local

Then move all your credentials to .gitconfig.local.

comments powered by Disqus