Due to some bad cherry-picking, my local Git repository is currently five commits ahead of the origin, and not in a good state. I want to get rid of all these commits and st
Simply delete your local master branch and recreate it like so:
git branch -D master git checkout origin/master -b master