Reverts the given commit, producing changes in the working directory.
the repository to revert
the commit to revert
merge flags
zero on success, -1 on failure.