Open main menu

Git/hacks

< Git
Revision as of 10:54, 25 June 2015 by Freephile (talk | contribs) (Created page with "See all the changes in color, but without any context lines, and without the leading +/-/<nowiki>[space]</nowiki> This makes it easy to grab changes and stuff them in another...")

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)

See all the changes in color, but without any context lines, and without the leading +/-/[space] This makes it easy to grab changes and stuff them in another file for example.

git diff -U0 --color myfile | sed -r "s/^([^-+ ]*)[-+ ]/\\1/"