what happens when you git commit, checkout previous, commit agian code example Example: git checkout previous commit git reset --hard HEAD~10 To rollback 10 commits back: