.gitConfig Template

[user]
  name = <your-name>
  email = <your-email>

[alias]
  aliases = "!git config --get-regexp ^alias"
	clrdiff = difftool --extcmd 'icdiff --highlight --line-numbers --numlines=2 --tabsize=2 --cols=120'
  lg = 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(auto)%d%C(reset)' --all
  lgm = 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(auto)%d%C(reset)%n''          %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
  lg = lgm
	l = "log --pretty=format:'%C(#cccc00)%h %Cred%ad %Creset%<(60,trunc)%s%C(auto)%d %C(magenta)%<(15,trunc)%an' --date=format:'%y%m%d'"

[core]
excludesfile = ~/.gitignore      # valid everywhere

[core]
  # OMZ uses `less` which requires hitting `q` to get back to the prompt
  pager = "less -FRSX"

[color]
  diff = auto
  status = auto
  branch = auto
  interactive = auto
  ui = auto
  pager = true

[color "diff"]
  new = bold italic 154
  old = bold italic 196

[color "status"]
  added = green
  changed = red bold
  untracked = magenta bold

[color "branch"]
  remote = yellow

[init]
	defaultBranch = main

[pull]
  ff = only