how to revert just one change in git code example Example: how to revert commit in git git checkout <commit hash>