GIT cheat sheet

Removes local branches where remote tracking branch was deleted

git branch --verbose | grep -P '\[(?:gone|entfernt)\]' | awk '{ print $1 }' | xargs --no-run-if-empty git branch -d