git config

By Xah Lee. Date: . Last updated: .

Here's the most important and practical git config.

Setup Editor for Commit Message

when you do commit, e.g.

git commit filename -m "message"

when you have multiple lines for message or it contains Unicode characters, it may not work well.

it's better to setup a text editor, so that git will launch your editor and let you type the message.

set up editor this way:

git config --global core.editor emacs

Always Use Color

git config --global color.ui true

Output All at Once (No Pager)

git config --global core.pager ""

git FAQ


git FAQ