git for c#, clone方法

private static void clone()
        {
            string wkDir = @"E:\DotNet2010\单位project\Git.Client\lib2Test\ConsoleApplication1\bin\Debug\D2Git";
            string url = "http://localhost/git/test.git";
            CloneOptions co = new CloneOptions
            {
                CredentialsProvider = (x,y,z) => new UsernamePasswordCredentials { Username="admin", Password="admin"}
            };
            Repository.Clone(url, wkDir, co);
        }
转载请注明出处:blog.csdn.net/javasuki
posted @ 2017-08-02 19:36  yxysuanfa  阅读(506)  评论(0编辑  收藏  举报