how to get 3 commits back changes in git code example Example: revert git commit git revert <the_commit_hash>