remove all local change and delete branch code example
Example: git delete all local branches
git for-each-ref --format '%(refname:short)' refs/heads | grep -v master | xargs git branch -D
git for-each-ref --format '%(refname:short)' refs/heads | grep -v master | xargs git branch -D