1. <strong id="7actg"></strong>
    2. <table id="7actg"></table>

    3. <address id="7actg"></address>
      <address id="7actg"></address>
      1. <object id="7actg"><tt id="7actg"></tt></object>

        GitSharp.NET的Git開發(fā)包

        聯(lián)合創(chuàng)作 · 2023-10-01 11:59

        GitSharp 是 .NET 框架和 MONO 實現(xiàn)的 Git,旨在完全兼容 Git,也可作為輕量級的開發(fā)庫為那些需要 Git 特性的應(yīng)用以及訪問 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";

        瀏覽 11
        點贊
        評論
        收藏
        分享

        手機掃一掃分享

        編輯 分享
        舉報
        評論
        圖片
        表情
        推薦
        點贊
        評論
        收藏
        分享

        手機掃一掃分享

        編輯 分享
        舉報
        1. <strong id="7actg"></strong>
        2. <table id="7actg"></table>

        3. <address id="7actg"></address>
          <address id="7actg"></address>
          1. <object id="7actg"><tt id="7actg"></tt></object>
            老外做爰全过程免费视频 | 91n成人久久 | 欧美裸体tickle免费网站 | 色欲αV| 日本福利在线 | 免费男女羞羞的视频网站中文子暮 | 精品成人人妻AV一区二区 | 欧美黄色免费观看 | j8又长又大又硬又粗视频 | AV高清无码在线观看 |