how do you revert a commit on git code example
Example 1: revert git commit
git revert <the_commit_hash>
Example 2: how to revert commit in git
git checkout <commit hash>
git revert <the_commit_hash>
git checkout <commit hash>