how come back to last commit git code example Example: roll back last commit in git git reset --soft HEAD~1