how to delete commit after going back to an earlier commit code example Example: how to revert to log in git git revert --no-commit 0766c053..HEAD git commit