I am writing a program that manipulates a git repo using the LibGit2Sharp library. One of the operations that I need to perform is a rebase to incorporate changes made to the master into a branch. How do I perform a git rebase master
command using LibGit2Sharp? I haven't been able to find any examples of this.
What about something like
using(var repo = new Repository("path"))
{
var id = new Identity("name", "email");
var opt = new RebaseOptions();
var rebaseResult = repo.Rebase.Start(
featureBranch,
masterBranch,
null,
id,
opt);
}