Skip to content

Instantly share code, notes, and snippets.

@josephshambrook
Last active March 3, 2025 12:03
Show Gist options
  • Save josephshambrook/dfe089d34f7222e75ca5cf68c95bb423 to your computer and use it in GitHub Desktop.
Save josephshambrook/dfe089d34f7222e75ca5cf68c95bb423 to your computer and use it in GitHub Desktop.
My Git settings
# favourite aliases - especially `ac`
[alias]
a = add --all
ac = !git add -A && git commit -m
cm = commit -m
co = checkout
cob = checkout -b
ps = push
psf = push --force
pl = pull
s = status
rb = rebase
rbc = rebase --continue
rba = rebase --abort
rbs = rebase --skip
# bunch of the below settings added thanks to this article
# https://blog.gitbutler.com/how-git-core-devs-configure-git/
[column]
ui = auto
[branch]
sort = -committerdate
[tag]
sort = version:refname
[init]
defaultBranch = main
[diff]
algorithm = histogram
colorMoved = plain
mnemonicPrefix = true
renames = true
[fetch]
prune = true
pruneTags = true
all = true
[push]
autoSetupRemote = true
default = simple
followTags = true
[pull]
# tends to vary by project
verbose = false
[help]
autocorrect = prompt
[rerere]
enabled = true
autoupdate = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment