Skip to content

Instantly share code, notes, and snippets.

View chrisjohannsen-olo's full-sized avatar

Chris Johannsen chrisjohannsen-olo

View GitHub Profile
[alias]
amend = commit -a --amend
branches = branch -avv
bclean = "!f() { git branch --merged ${1-develop} | grep -v \\* | grep -v master$ | grep -v ${1-develop}$ | xargs -r git branch -d; }; f"
c = clone --recursive
ca = !git add -A && git commit -av
co = checkout
d = diff --patch-with-stat
fetch-pr = "!f() { git fetch -fu $1 refs/pull/$2/head:pull-$2; }; f"
go = checkout -B