Skip to content
Novus Examples
gitconfig

What is a .gitconfig file?

text/plain

A .gitconfig file holds Git configuration in an INI-like syntax: bracketed section headers, optional subsection names in quotes, and `key = value` pairs. The same grammar serves the system, global, and per-repository files, which are layered in that order, and values may be booleans, integers with `k`/`m`/`g` suffixes, colours, or paths. Comments begin with `#` or `;`.

How to use a .gitconfig file

Use an example .gitconfig file to test INI-style configuration parsers and Git tooling, checking quoted subsection names, value continuation, boolean coercion, and precedence when the same key appears more than once.

Convert a .gitconfig file to another format

← All file formats