【问题标题】:libgit2sharp only commit changes for a specific filelibgit2sharp 仅提交特定文件的更改
【发布时间】:2021-03-23 04:46:41
【问题描述】:

有没有办法只使用 libgit2sharp 提交特定文件的更改?我正在寻找类似 git commit -m'single file' test.txt 的等价物

【问题讨论】:

    标签: c# libgit2sharp


    【解决方案1】:

    我相信您可以暂存您想要提交的文件。

    Commands.Stage(repo, files);
    repo.Commit(message, author, committer);
    

    加里克

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-02-14
      • 2014-07-19
      • 2014-06-07
      • 1970-01-01
      • 2018-05-12
      • 1970-01-01
      • 2013-04-04
      相关资源
      最近更新 更多