git rebase交互式drop vs删除提交行 [英] Git rebase interactive drop vs deleting the commit line

查看:375
本文介绍了git rebase交互式drop vs删除提交行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

与Git交互式rebase中的drop有什么区别,只是删除提交的行有什么区别?

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

推荐答案

默认情况下没有区别.这只是说同一件事的另一种方式.

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

但是,如果您设置 rebase.missingCommitsCheck warnerror,然后删除一行将触发警告(用于检测混乱的剪切粘贴).

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).

然后将行设置为drop明确告诉Git您要删除该提交,并且不会显示警告.

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

这篇关于git rebase交互式drop vs删除提交行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆