Reverts the given commit, producing changes in the index and working directory.
the repository to revert
the commit to revert
the revert options (or null for defaults)
zero on success, -1 on failure.
See Implementation
Reverts the given commit, producing changes in the index and working directory.