GitSharp .NET的Git开发包

程序名称:GitSharp

授权协议: BSD

操作系统: Windows

开发语言: C#

GitSharp 介绍

GitSharp 是 .NET 框架和 MONO 实现的
Git,旨在完全兼容 Git,也可作为轻量级的开发库为那些需要 Git 特性的应用以及访问
Git 资料库。

示例代码

//opening an existing git repository
repo = new Repository(“path/to/repo”);

// Now suppose you have created some new files and want to commit them
repo.Index.Add(“README”, “License.txt”);
Commit commit = repo.Commit(“My first commit with gitsharp”, new
Author(“henon”, "[email protected]”));

// Easy, isn’t it? Now let’s have a look at the changes of this commit:
foreach (Change change in commit.Changes)
Console.WriteLine(change.Name + ” ” + change.ChangeType);

//Get the staged changes from the index
repo.Status.Added.Contains(“README”);

//Access and manipulate the configuration
repo.Config[“core.autocrlf”] = “false”;

GitSharp 官网

https://github.com/henon/GitSharp

相关编程语言

memcached-session-manager 将session存储到memchac...
Tomcat Native 这个项目可以让 Tomcat 使用 Apache ...
EasyTomcat 是一个用来帮助简化 Tomcat 和MySQL 管理...
riak-session-manager 是使用 Riak 来存储Tomcat se...
tomcat-redis-session-manager 是一个用来将 Tomcat...
这是一款在 Oracle 的 JDeveloper 开发环境下管理To...