Shinyspace

my default git config

2026-02-18

Git asks for quite a few settings these days before being usable, and offers a bunch of new features that aren't enabled by default. here's my config:

[user]
    name = example
    email = example@nospampls

[init]
    defaultBranch = main

[pull]
    rebase = true

[push]
    autoSetupRemote = true

[fetch]
    prune = true
    pruneTags = true

[merge]
    conflictStyle = zdiff3

[rebase]
    autoStash = true
    autoSquash = true

[rerere]
    enabled = true

[diff]
    algorithm = histogram
    colorMoved = plain
    mnemonicPrefix = true
    renames = true

[branch]
    sort = -committerdate

[tag]
    sort = -version:refname

[core]
    autocrlf = input

[help]
    autocorrect = prompt

[column]
    ui = auto

[commit]
    verbose = true