Global config and local config.
Add a key value :
git config --add --global <section>.<key> "<value>"
View key value :
git config --get <section>.<key>
Note: you can add the same <section>.
several time with different value.
git config --list
# or
git config --get-regexp <regex>
git config -unset <section>.<key>
git config -unset-all <section>.<key> # if the key has several entry
git config -remove <section> # remove all sections
The final config is the result of the merge of several files.
They are --system, --global, --local, --worktree
Without specifying it is --local.