clean up branches from command line git code example
Example: clean local branches git
git branch --merged master | grep -v '^[ *]*master$' | xargs git branch -d
git branch --merged master | grep -v '^[ *]*master$' | xargs git branch -d