pa5whg
Last Updated: October 12, 2018
·
13.1K
· elus

Git side-by-side diff in terminal

Using regular diff:

$ git difftool -y -x "diff -y -W $COLUMNS" | less

sdiff:

$ git difftool -y -x "sdiff -w $COLUMNS" | less

or colordiff

$ git difftool -y -x "colordiff -y -W $COLUMNS" | less -R
Filed Under