Undo multiple commits
git reset --hard 0ad5a7a6 (Just provide commit SHA1 hash)
Undo last commit
git reset --hard HEAD~1 (changes to last commit will be removed ) git reset --soft HEAD~1 (changes to last commit will be available as uncommited local modifications)