相关疑难解决方法(0)

git-reset的--merge和--keep标志的典型用例是什么?

最近的回答中,他详细介绍的典型应用案例git-reset的三个最常用的选项(--hard,--mixed,和--soft),托雷克顺便提到的是git-reset还提供了两个比较深奥的标志,被称为--merge--keep.该git-reset手册页描述了如下的两个标志:

--merge

   Resets the index and updates the files in the working tree
   that are different between <commit> and HEAD, but keeps
   those which are different between the index and working tree
   (i.e. which have changes which have not been added). If a
   file that is different between <commit> and the index has
   unstaged changes, reset is aborted.

   In …
Run Code Online (Sandbox Code Playgroud)

git git-reset

15
推荐指数
1
解决办法
970
查看次数

标签 统计

git ×1

git-reset ×1