【问题标题】:In Libgit2sharp, is there any way to revert some files' change (Not commited)?在 Libgit2sharp 中,有没有办法恢复某些文件的更改(未提交)?
【发布时间】:2013-07-22 03:45:47
【问题描述】:

在其他源代码控制中,此操作称为还原或撤消。

在 Git 中,我可以使用

“git checkout 文件路径”

获得类似的功能。

但是在 Libgit2sharp 中,我找不到类似的功能,谁能帮助我?

【问题讨论】:

    标签: git libgit2 libgit2sharp


    【解决方案1】:

    @jamill 几天前刚刚推出了这个功能:

    repo.CheckoutPaths() 将刷新工作目录的内容以匹配来自特定树的文件版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-17
      • 1970-01-01
      • 2011-02-06
      • 2018-04-05
      • 2020-02-17
      相关资源
      最近更新 更多