Skip to main content

Manage custom configuration options for git repositories. These configurations can be local (for the current repository) or global (for the current user).

# To list only local configuration entries (stored in '.git/config' in the current repository):
git config --list --local

# To list only global configuration entries (stored in '~/.gitconfig'):
git config --list --global

# To list all configuration entries that have been defined either locally or globally:
git config --list

# To get the value of a given configuration entry:
git config alias.unstage

# To set the global value of a given configuration entry:
git config --global alias.unstage "reset HEAD --"

# To revert a global configuration entry to its default value:
git config --global --unset alias.unstage