I ran a global configuration command in git to exclude certain files using a .gitignore_global file:
git config --global core.excludesfile ~/.gitignore_globa
You can use the --unset flag of git config to do this like so:
--unset
git config
git config --global --unset user.name git config --global --unset user.email
If you have more variables for one config you can use:
git config --global --unset-all user.name