public void UpdateRawRef(string toBeUpdatedRef, string toBeUpdatedToRef) { using (var repo = new LibGit2Sharp.Repository(RepositoryPath)) { repo.Refs.UpdateTarget(toBeUpdatedRef, toBeUpdatedToRef); } }