Git - Diff

To diff your changes:

git diff index.html

To diff your changes on stage:

git diff --staged index.html

To show changes on same line with different colors:

git diff --color-words index.html

To show changes between branches on same line with different colors:

git diff --color-words test..test2

To show changes between commit abc123 and now on file specified:

git diff abc123 index.html

For word wrap on less in diff use minus sign (-) + shift + s + enter