Search notes:

~/.gitconfig

~/.gitconfig stores is the configuration file for Git that stores a user's preferred git options. These options can be viewed or modified with git config --user ….
[user]
        email = …
        name = Rene Nyffenegger
[core]
        autocrlf = false
[alias]
  lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
  lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n''          %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
  lg = !"git lg1"

File format

Sections

A section begins with its (case insensitive) name in square brackets and continues to either the next section or end of file:
[sectionOne]
   …
   …
[sectionTwo]
   …

Subsections

A section can be divided into case-sensitive subsections:
[section "subsection"}
  …

Variables

A section contains variables. Variables are case-insensitively named values:
[section]
    varNum = 42
    varTxt = Hello World

Comments

Comments are introduced with a # or a ; and continue to the end of the line.
  #  comment
[section]
  ;  another comment

Blank lines

Blank lines are ignored.

See also

.git/config

Index