git diff show both the original and the modified line with
+ respectively. Is there any way, I can filter only to see the modified line? This would reduce the number of lines to read by a factor of 2 instantly.
I was assuming
git diff test.yml | grep '^+' | less -R
git diff test.yml | egrep '^+' | less -R
to have the same result. ie they would show any new additions in a file. However
egrep shows me the entire file. Why is that so?
With the above method anyways, I lose the color. Is there any way to retain the color?