public static GitResetResponse gitReset ( File repository ) throws IOException , JavaGitException { CheckUtilities . checkNullArgument ( repository , "repository" ) ; IClient client = ClientManager . getInstance ( ) . getPreferredClient ( ) ; IGitReset gitReset = client . getGitResetInstance ( ) ; return gitReset . gitReset ( repository ) ; }
Perform a reset on the repository . The results of this method are what one would get by running &quote ; git - reset&quote ; against the repository .