private static void pushModify() { string wkDir = @"E:\DotNet2010\单位工程\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
git for c#,文件修改内容,布布扣,bubuko.com
时间: 2024-10-20 06:20:25