Fix ESC git diff / FreeBSD

So let’s say you are trying to do a git diff and it looks like crap:

ESC[1mdiff –git a/node_modules/namecheap/namecheap.js b/node_modules/namecheap/namecheap.jsESC[m
ESC[1mindex df87fc0..dde8ea0 100644ESC[m
ESC[1m— a/node_modules/namecheap/namecheap.jsESC[m
ESC[1m+++ b/node_modules/namecheap/namecheap.jsESC[m
ESC[36m@@ -276,15 +276,15 @@ESC[m ESC[mnamecheap.prototype = {ESC[m

fix it by doing :

git config –global core.pager “less -r”


Leave a Reply

Your email address will not be published. Required fields are marked *

CommentLuv badge