Artificial intelligent assistant

Can less retain colored output? Can I get less not to monochrome its output? E.g., the output from `git diff` is colored, but `git diff | less` is not.

Use:


git diff --color=always | less -r


`--color=always` is there to tell `git` to output color codes even if the output is a pipe (not a tty). And `-r` is there to tell `less` to interpret those color codes and other escape sequences. Use `-R` for ANSI color codes only.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 3ad4699a9a71cd70bdac2d44258dc656