View Git Patch Files In Color With This Script

I wanted to view a Git patch file with some color to make the diffs clear. I searched┬áthe net for a few minutes until I realized that it’s simpler to write one than to find one :)

You can find it in public repo.


./ my_patch.patch | less -R

git patch with color

Leave a Reply