Вот
Можно также проверить:
git-revert - Revert some existing commits
git revert [--[no-]edit] [-n] [-m parent-number] [-s] [-S[]] ...
...
Commits to revert. For a more complete list of ways to spell commit
names, see gitrevisions(7). Sets of commits can also be given but
no traversal is done by default, see git-rev-list(1) and its
--no-walk option.
и другие флаги через git --help revert