GIT_MERGE_AUTOEDIT=no by default

佐手、 提交于 2019-12-10 07:30:07

问题


In my git (v 1.7.10.2), I have to do the following in my terminal:

 GIT_MERGE_AUTOEDIT=no
 export GIT_MERGE_AUTOEDIT

So, everytime I merge, I am not force to put a message.

Where should I put this, so by default it gets this set up and I don't have to type it everytime I open the terminal in my MAC?


回答1:


You can put it in:

.bash_profile

Open a terminal

nano $HOME/.bash_profile

and add the line

export GIT_MERGE_AUTOEDIT=no

Don't forget to open a new terminal for this to work.



来源:https://stackoverflow.com/questions/13748344/git-merge-autoedit-no-by-default

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!