Git Tip: How to Git merge without being prompted for a commit message

Do you get annoyed with merging two branches and being asked to add say something special about a simple merge? I do.

What I have learned is that you can set your GIT_EDITOR environment variable in a way that accepts the standard git merge message.

In your .bashrc or .zshrc, add this:

export GIT_EDITOR='true git commit'

By exporting this GIT_EDITOR value, you are signalling to the Git prompt: 👍 and commit!