git rebase -i-保留空提交 [英] git rebase -i --retain-empty-commits

查看:63
本文介绍了git rebase -i-保留空提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认情况下,当您使用 git rebase -i 时,它会注释掉空的提交,而我必须取消注释(这对我有帮助).rebase命令是否有一个选项可以防止这种我不想保留它们的不必要的假设?

By default, when you use git rebase -i it comments out empty commits and I have to uncomment them (they're helpful to me). Is there an option to the rebase command that will prevent this unwanted assumption that I don't want to preserve them?

推荐答案

好吧,这比预期的要容易:

Okay, that was easier than expected:

git rebase -i --keep-empty

希望这篇文章将加快其他Google搜寻找到答案的速度.

Hopefully this post will speed up others Googling to find the answer.

这篇关于git rebase -i-保留空提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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