reset current branch to this commit meaning code example Example: how to reset git branch to a certain commit. git revert --no-commit 0766c053..HEAD git commit