Git alias and then some
Looking back at my old very single post about git aliases made me realize that I have changed quite a few bits since then. It’s not just the aliases anymore, it’s more about my full git configuration.
General configurations
[column]
ui = auto
[branch]
sort = -committerdate
[tag]
sort = version:refname
[diff]
algorithm = histogram
colorMoved = plain
mnemonixprefix = true
renames = true
[fetch]
prune = true
pruneTags = true
all = true
[rebase]
autoStash = true
autoSquash = true
updateRefs = true
[pull]
rebase = true
[push]
default = simple
autoSetupRemote = true
followTags = true
Formatting
[pretty]
slog = format:%C(auto)%h %C(magenta)%ad %C(auto)%d%C(auto) %s %C(green)[%cn]
Aliases
st = status -s
pur = pull --rebase origin
aa = add -A
cm = commit -m
ups = commit -a --amend
co = checkout
cob = checkout -b
dh = diff HEAD
wdiff = diff -w --word-diff=color --ignore-space-at-eol
ls = log --pretty=slog --decorate --date=relative
ll = log --pretty=slog --decorate --date=relative --numstat
fl = log -u
start = !git init && git commit --allow-empty -m \"Initial commit\"