==== .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''.