git for c#,文件改动内容
private static void pushModify() { string wkDir = @"E:\DotNet2010\单位project\Git.Client\lib2Test\ConsoleApplication1\bin\Debug\D2Git\.git"; using (var repo = new Repository(wkDir)) { //此处设置断点,用计事本改动1.txt的内容并保存 FileStatus status = repo.Index.RetrieveStatus("1.txt"); repo.Index.Stage("1.txt"); status = repo.Index.RetrieveStatus("1.txt"); //commit... //push... } Console.Read(); }转载请注明出处:blog.csdn.net/javasuki
posted on 2017-08-15 09:23 gavanwanggw 阅读(247) 评论(0) 编辑 收藏 举报