git revert git commit code example
Example 1: revert git commit
git revert <the_commit_hash>
Example 2: revert commit git
$ git log --oneline
9ef9173 File with one line
git revert <the_commit_hash>
$ git log --oneline
9ef9173 File with one line