revert to commit in git code example
Example 1: revert git commit
git revert <the_commit_hash>
Example 2: revert commit git
git revert <commit hash>
Example 3: get back some commits git
git revert {commit_id}'
Example 4: how to revert commit in git
git checkout <commit hash>