Instructions to reset to the master branch locally in Git.
git branch | grep -v "master" | xargs git branch -D