Reset to Master Branch Locally - Git Command

Instructions to reset to the master branch locally in Git.

Code

git branch | grep -v "master" | xargs git branch -D