最佳答案
GitSharp(至少,它的核心)是 JGit 的逐行手册端口。自 2010 年 8 月以来,它的开发目前已暂停。但是,一些产品仍然依赖它(例如 Git-dot-aspx )。
NGit 是 JGit 的自动化端口。它不断针对 JGit 进行更新,并不断受益于 JGit 的改进和错误修复。 NGit 目前用于 bring Git features to MonoDevelop .
在性能方面,使用 GitSharp 克隆一个巨大的存储库(例如 Mono 或 Linux)是一个漫长而痛苦的经历。不过,我还没有尝试过使用 NGit。
考虑到这些事实,从支持/维护的角度来看,我建议您使用 NGit 而不是 GitSharp。
编辑:
GitSharp 网站现在声明
GitSharp development is currently on hold because we believe that the libgit2 project and its C# bindings libgit2sharp are far more promising to work on.
关于c# - GitSharp 与 NGit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5994205/