问题
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