Skip to content

Instantly share code, notes, and snippets.

@shortthirdman
Created March 20, 2025 16:51
Show Gist options
  • Save shortthirdman/ef0a59d12dcacae169fa5609f3e35e78 to your computer and use it in GitHub Desktop.
Save shortthirdman/ef0a59d12dcacae169fa5609f3e35e78 to your computer and use it in GitHub Desktop.
Git Configuration on Windows/Mac/Linux
# clearly makes git better
[column]
ui = auto
[branch]
sort = -committerdate
[tag]
sort = version:refname
[init]
defaultBranch = main
[diff]
# myers, minimal, patience and histogram
algorithm = histogram
colorMoved = plain
mnemonicPrefix = true
renames = true
[push]
default = simple
autoSetupRemote = true
followTags = true
[fetch]
prune = true
pruneTags = true
all = true
# why the hell not?
[help]
autocorrect = prompt
[commit]
verbose = true
[rerere]
enabled = true
autoupdate = true
[core]
excludesfile = ~/.gitignore
[rebase]
autoSquash = true
autoStash = true
updateRefs = true
[grep]
patternType = perl
# a matter of taste (uncomment if you dare)
[core]
fsmonitor = true
# untrackedCache = true
[merge]
# (just 'diff3' if git version < 2.3)
# conflictstyle = zdiff3
[pull]
# rebase = true
[feature]
# experimental = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment