I ran a global configuration command in git to exclude certain files using a .gitignore_global
file:
git config --global core.excludesfile ~/.gitignore_global
Is there a way to undo the creation of this setting globally?
The git config command is a convenience function that is used to set Git configuration values on a global or local project level. These configuration levels correspond to . gitconfig text files. Executing git config will modify a configuration text file.
How to do a git config global edit? The global git config is simply a text file, so it can be edited with whatever text editor you choose. Open, edit global git config, save and close, and the changes will take effect the next time you issue a git command. It's that easy.
I'm not sure what you mean by "undo" the change. You can remove the core.excludesfile
setting like this:
git config --global --unset core.excludesfile
And of course you can simply edit the config file:
git config --global --edit
...and then remove the setting by hand.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With