Tri*_*rip 11 git merge git-pull
我已经尝试了一些建议,但似乎没有任何东西可以删除它.当我升级到Mountain Lion OS X时,这种情况就开始发生了.任何时候我都会这样做git pull
,它会显示出令人讨厌的空标题为MERGE_MSG的空编辑器.
如何防止在我的所有应用程序中全局弹出?
Bri*_*ell 17
您可以传递--no-edit
给git pull
,也可以将环境变量设置GIT_MERGE_AUTOEDIT
为no
.
从git pull
文档:
--edit, --no-edit
Invoke an editor before committing successful mechanical merge to
further edit the auto-generated merge message, so that the user can
explain and justify the merge. The --no-edit option can be used to
accept the auto-generated message (this is generally discouraged).
The --edit option is still useful if you are giving a draft message
with the -m option from the command line and want to edit it in the
editor.
Older scripts may depend on the historical behaviour of not
allowing the user to edit the merge log message. They will see an
editor opened when they run git merge. To make it easier to adjust
such scripts to the updated behaviour, the environment variable
GIT_MERGE_AUTOEDIT can be set to no at the beginning of them.
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
10954 次 |
最近记录: |