Git Configuration

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Files

Overview

git maintains configuration in a hierarchy of files, from system-wide configuration in /etc/gitconfig, user-specific configuration in and , to repository specific configuration in.

/etc/gitconfig contains configuration that applies to all users of the system. git config --system reads and writes this file.


It resolves a configuration element to the most specific value - a repository-level value takes precedence over a user-level values, and a user-level values takes precedence over the corresponding system-level value.

Environment Variables

Git Environment Variables

Configuration Options

Git Configuration Options

Configuration Operations

git config Configuration Operations