Git rebase interactive drop vs deleting the commit line

前端 未结 3 1890
执念已碎
执念已碎 2020-12-25 09:26

What is the difference from drop in the Git interactive rebase and just deleting the line of the commit?

3条回答
  •  天涯浪人
    2020-12-25 10:25

    There is no difference by default; it's just another way to say the same thing.

    But, if you set rebase.missingCommitsCheck to warn or error, then removing a line will trigger a warning (useful for detecting a messed-up cut-and-paste).

    Then setting the line to drop explicitly tells Git that you want to drop that commit, and no warning is shown for it.

提交回复
热议问题