Last active
March 3, 2025 12:03
-
-
Save josephshambrook/dfe089d34f7222e75ca5cf68c95bb423 to your computer and use it in GitHub Desktop.
My Git settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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