Currently only the local $GIT_DIR/config file can be read or written. However support for the global ~/.gitconfig and system $(prefix)/etc/gitconfig will be added in the future.
The current parser does not support the more exotic features of the git-config file format such as [include] and [includeIf].
Write an entry to the git config files.
Caveats:
$GIT_DIR/config
file can be read or written. However support for the global~/.gitconfig
and system$(prefix)/etc/gitconfig
will be added in the future.[include]
and[includeIf]
.Returns
Resolves successfully when operation completed.
Example