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!