private void ResetHard(Commit commit) { commit.Checkout(_repo.WorkingDirectory); _repo._internal_repo.Index.write(); Ref.Update("HEAD", commit); }