New changes

This commit is contained in:
2024-12-30 21:02:21 +00:00
parent da1028388a
commit 28be9bc539
4 changed files with 37 additions and 11 deletions
+13
View File
@@ -113,5 +113,18 @@ namespace OmegaLeo.HelperLib.Git
_repo.Commit(message, author, author);
}
public void Push()
{
try {
var remote = _repo.Network.Remotes["origin"];
var options = new PushOptions();
var pushRefSpec = @"refs/heads/master";
_repo.Network.Push(remote, new string[] {pushRefSpec}, options);
}
catch (Exception e) {
Console.WriteLine("Exception:RepoActions:PushChanges " + e.Message);
}
}
}
}