'Does a "git reset --hard <reset_commit_id>".
:param reset_commit_id: The commit id to reset to'

def reset_to_previous_state(self, reset_commit_id):

    self._repo.head.reset(commit=reset_commit_id, index=True, working_tree=True)
