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
Simple Solution will be to match local master branch HEAD to origin/master branch HEAD
git reset --hard origin/master
PS: origin/master - is remote pointer to master branch. You can replace master with any branch name