Skip to content

Instantly share code, notes, and snippets.

@sidwarkd
Created March 5, 2025 20:24
Show Gist options
  • Save sidwarkd/4f6c75845b8af797852d7d0b93ea595e to your computer and use it in GitHub Desktop.
Save sidwarkd/4f6c75845b8af797852d7d0b93ea595e to your computer and use it in GitHub Desktop.
Default gitconfig file
# Taken from https://blog.gitbutler.com/how-git-core-devs-configure-git
# Modified with settings I like
# clearly makes git better
[column]
ui = auto
[branch]
sort = -committerdate
[tag]
sort = version:refname
[init]
defaultBranch = main
[diff]
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment