Manage custom configuration options for Git repositories. These configurations can be local (for the current repository) or global (for the current user). More information: https://git-scm.com/docs/git-config.
git config --global user.name|user.email "Your Name|[email protected]"
git config --list --local|global
/etc/gitconfig
), and show their file location:git config --list --system --show-origin
git config alias.unstage
git config --global alias.unstage "reset HEAD --"
git config --global --unset alias.unstage
.git/config
) in the default editor:git config --edit
~/.gitconfig
by default or $XDG_CONFIG_HOME/git/config
if such a file exists) in the default editor:git config --global --edit