git aliases
[alias]
a = add
aa = add --all
ap = add -p
b = branch
c = commit
cm = commit -m
cp = cherry-pick
d = diff
f = fetch
fu = fetch upstream
o = checkout
ob = checkout -b
ps = push
psf = push -f
pso = push origin
psfo = push -f origin
psu = push upstream
psfu = push -f upstream
pl = pull
plo = pull origin
plu = pull upstream
pb = pull --rebase
pbo = pull --rebase origin
pbu = pull --rebase upstream
r = remote
rb = rebase
rba = rebase --abort
rbc = rebase --continue
rbi = rebase --interactive
rbih = "!r() { git rebase -i HEAD~$1; }; r"
rbs = rebase --skip
s = status
sl = stash list
sw = stash show
fixup = commit --amend -C HEAD
undo-commit = reset --mixed HEAD^
# Find commits by commit message
fm = "!f() { git log --pretty=format:'%C(yellow)%h %Cblue%ad %Creset%s%Cgreen [%cn] %Cred%d' --decorate --date=short --grep=$1; }; f"