我想要总是使用--cleanup=whitespace
时创建/编辑提交消息(以允许初始“#”)。不幸的是,我找不到合适的设置放入~/.gitconfig
;这一个不工作:git:使用“commit --cleanup = whitespace”和“rebase --interactive”
[commit]
cleanup = whitespace
对于正常提交我加入--cleanup=whitespace
我的主要承诺的别名,但 我无法弄清楚如何将这个选项传递给git rebase --interactive
这样我就可以改写和壁球和承诺使用我的首选清理方法。
我不知道要么,我需要它,因此只+1 – route 2012-10-18 13:26:11
你能否更具体 – 2013-01-22 15:33:29
新'git commit --cleanup = scissors'模式在这里很有趣。请参阅[我的答案](http://stackoverflow.com/a/22653672/6309) – VonC 2014-03-26 06:58:24