Delete all branches that were once part of origin, but are no longere there. Any local branches you have made but not pushed will be safe. prune-branches = git remote prune origin && git branch -vv | grep ': gone]' | awk '{print $1}' | xargs -r git branch -D
This one formats the git log to be more concise:
ls = git log --pretty=format:"%ci\\ %C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
Delete all branches that were once part of origin, but are no longere there. Any local branches you have made but not pushed will be safe.
prune-branches = git remote prune origin && git branch -vv | grep ': gone]' | awk '{print $1}' | xargs -r git branch -D