reverting a commit github code example Example: how to revert commit in git git checkout <commit hash>