GitSharp

.NET的Git开发包
授权协议 BSD
开发语言 C# .NET
所属分类 服务器软件、 版本控制系统
软件类型 开源软件
地区 不详
投 递 者 丌官博文
操作系统 Windows
开源组织
适用人群 未知
 软件概览

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", "meinrad.recheis@gmail.com"));

// 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";

 相关资料
  • 目录 教程 通用教程 Git使用 GitHub Pages GitBook GitHub API Travis CI 文章 网站 常用网站 GitHub Rank Star管理 工具 常用工具 桌面工具 App 插件 命令行 项目 项目 库 其他的awesome 教程 通用教程 《Github 帮助文档》 中文翻译 - 包含了官方文档以及其他文章 GitHub Guides - 官方的GitHub

  • 现在你已经学会新建和合并分支,那么你可以或者应该用它来做些什么呢? 在本节,我们会介绍一些常见的利用分支进行开发的工作流程。而正是由于分支管理的便捷,才衍生出这些典型的工作模式,你可以根据项目实际情况选择一种用用看。 长期分支 因为 Git 使用简单的三方合并,所以就算在一段较长的时间内,反复把一个分支合并入另一个分支,也不是什么难事。 也就是说,在整个项目开发周期的不同阶段,你可以同时拥有多个开

  • Contributing code to PX4 Adding a feature to PX4 follows a defined workflow. In order to share your contributions on PX4, you can follow this example. Sign up for github if you haven’t already Fork th

  • A C++ client for Redis 依赖于 c++ boost 库 It uses anet from Redis itself 在 Linux 上通过 g++ 的测试 支持分区

  • 术语说明 AppID AppID是轻应用/订阅号唯一识别标志,轻应用/订阅号管理员可在轻推管理后台中查看。 AppSecret AppSecret是给轻应用/订阅号分配的密钥,开发者需要妥善保存这个密钥,防止被恶意使用,为了安全,管理员也可以对此密钥进行修改,修改后前密钥失效。轻应用/订阅号管理员可在轻推管理后台中查看。 access_token access_token(身份令牌)是轻应用/订阅

  • 源码目录结构 构建系统概览 构建步骤(Windows) 在调试中使用 Symbol Server

  • 错误分析

  • Developing Electron Electron 和 NW.js (原名 node-webkit) 在技术上的差异 Updating an Appveyor Azure Image Build Instructions 构建步骤(Linux) 构建步骤(macOS) 构建步骤(Windows) 构建系统概览 Chromium 开发 在 C++ 代码中使用 clang-format 工具 代