As I knew, I could add git config by the following commands:
1 | # Add "local" config. |
What about removing a configuration item? A simple answer is using the following commands(from here):
1 | # Update(include removing) "local" config. |
The two commands start an editor app(such as “vi” or “Sublime Text”, depends on your local setting) to open the configuration files:
Local: “.git/config”
Global: “~/.gitconfig”
In another word, you can edit the configuration files directly to “add/update/remove” the configuration items.