Skip to content

Instantly share code, notes, and snippets.

View hamstu's full-sized avatar
🤩

Hamish Macpherson hamstu

🤩
View GitHub Profile
[alias]
branch-cleanup = "!git branch --merged | egrep -v \"(^\\*|master|dev)\" | xargs git branch -d #"
ca = !git add -A && git commit -av
s = status -s
l = log --pretty=oneline -n 20 --graph --abbrev-commit
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
la = "!git config -l | grep alias | cut -c 7-"
ca = !git add -A && git commit -av
co = checkout