If you have trouble with git diffs, e.g. you don't see color or see a lot of ESCs, use the following:
export LESS=eFRX
See https://stackoverflow.com/a/20414664/5419413.
If you have trouble with commiting files, e.g. it fails to let you enter a full message, use the following to set the editor to vim:
git config --global core.editor "vim"