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
To see/get the SHA-1 id of the commit you want to come back too
gitk --all
To roll back to that commit
git reset --hard sha1_id
!Note. All the commits that were made after that commit will be deleted (and all your modification to the project). So first better clone the project to another branch or copy to another directory.