In the first and second form, copy entries from to the index. In the third form, set the current branch head (HEAD) to , optionally modifying index and working tree to match. The / defaults to HEAD in all forms.
git reset --soft HEAD~2
git reset HEAD~
git reset --hard <commit-SHA>
git reset -- <filename>
git reset --hard HEAD~^
git reset --hard HEAD~^2