git reset hard head I miss my staged files? code example Example: git reset git reset --soft HEAD~3 git commit git push —force-with-lease origin