private static void subdirfile()
{
string wkdir = @"e:dotnet2010单位工程git.clientlib2testconsoleapplication1bindebugd2git.git";
using (var repo = new repository(wkdir))
{
//必须保证工作目录下有bb目录,和目录下的b.txt
string fname = "ddb.txt";
repo.index.stage(fname);
//commit...
//push...
}
}【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!