Search code examples
c#gitsvnlibgit2sharp

SharpSvn for Git


I am currently using SharpSvn to do logs, commits and other activities, programmatically in C#.

As we are shifting to Git from Svn, I am looking for a best alternate for SharpSvn for Git.

I attempted to use SharpGit, but it does not seem to have friendly APIs. I am getting error 401.

The other one - LibGit2Sharp is still Pre-Release.

Thank you in advance for your suggestions! GitClient gitClient = new GitClient();

        GitFetchArgs gitFetch = new GitFetchArgs();
        gitFetch.All = true;
        GitInitArgs gitInit = new GitInitArgs();
        gitClient.Init(@"C:\Work\TestGit");
        gitClient.Authentication.Credentials += new EventHandler<GitCredentialEventArgs>(Authentication_Credentials);
        GitClientArgs gitClientArgs;
        bool bFetch = gitClient.Fetch(@"C:\Work\TestGit", gitFetch);

Solution

  • Go with LibGit2Sharp; it works fine.