private static IRepository CreateNewRepository(string path) { LibGit2Sharp.Repository.Init(path); Console.WriteLine("Created git repository at '{0}'", path); var repo = new Repository(path); repo.MakeCommits(5); return repo; }