Look up any git setting fast
Git’s behaviour is driven almost entirely by git config keys spread across many
sections — core, user, diff, merge, pull, push, remote and more.
This reference lets you search those keys by name or description and filter by
section, so you can find the right key and its expected value without leaving the
page. Everything runs locally in your browser; nothing is uploaded.
How it works
Each entry lists the fully-qualified key (section.key), the value type or
allowed tokens, the scope where the key is normally set, a short description and
the default value where one exists. Git reads configuration from three files in
order of increasing precedence: system (/etc/gitconfig), global
(~/.gitconfig), and local (.git/config). When the same key appears in more
than one file, the most specific scope wins. Set a key with:
git config --global push.default simple
git config --local core.autocrlf input
Use --show-origin to discover which file a value came from when something
behaves unexpectedly.
Tips and examples
init.defaultBranch mainchanges the name of the first branch in new repos.pull.rebase truemakesgit pullrebase instead of creating merge commits.merge.conflictStyle zdiff3shows the common ancestor in conflict markers, which makes resolving conflicts far easier.- Define shortcuts with the
aliassection:git config --global alias.co checkoutlets you typegit co. - A value containing spaces must be quoted on the command line, and a literal
#in a value must be quoted because it otherwise starts a comment in the config file.