public void Push() { using (var repo = new LibGit2Sharp.Repository(RepositoryPath)) { var masterBranch = repo.Branches["master"]; repo.Network.Push(masterBranch); } }