git reset --soft HEAD~1
git reset HEAD <path>
git checkout -- <path>
git reset --hard HEAD~1
git revert <commit>