git commandline revoert comit in branch code example
Example 1: revert commit git
git revert <commit hash>
Example 2: how to revert commit in git
git checkout <commit hash>
git revert <commit hash>
git checkout <commit hash>