Git on a Server

Fixes for common git annoyances on remote machines.

2020

git diff

If you don't see color or see a lot of ESC characters in diffs:

export LESS=eFRX

git commit

If it fails to let you enter a full commit message, set the editor to vim:

git config --global core.editor "vim"

View gist

Charles Lovering © 2026