remove a config from git using terminal

C++
git config --global --unset core.excludesfile
git config --global --edit

Source

Also in C++: