我想在创建/编辑提交消息时始终使用--cleanup=whitespace(允许初始化"#").不幸的是,我找不到合适的设置~/.gitconfig; 这一个不起作用:
[commit]
cleanup = whitespace
Run Code Online (Sandbox Code Playgroud)
对于正常提交,我添加--cleanup=whitespace到我的主提交别名,但我无法弄清楚如何传递此选项,git rebase --interactive以便我可以重新编写和压缩提交并使用我首选的清理方法.
在git 1.8.2中,他们添加了我尝试使用的设置:
通过将配置变量commit.cleanup设置为'whitespace',可以告诉"git commit"使用--cleanup = whitespace.
与此同时,我刚开始在#... 之前添加一个空格
| 归档时间: |
|
| 查看次数: |
772 次 |
| 最近记录: |