private static void SubDirFile()
{
string wkDir = @"E:\DotNet2010\单位project\Git.Client\lib2Test\ConsoleApplication1\bin\Debug\D2Git\.git";
using (var repo = new Repository(wkDir))
{
//必须保证工作文件夹下有bb文件夹,和文件夹下的b.txt
string fname = "dd\\b.txt";
repo.Index.Stage(fname); //commit...
//push...
}
}
转载请注明出处:blog.csdn.net/javasuki