When I tried to use git’s diff-highlight on Mac, I got a command not found error.
% git diff
diff-highlight | less: diff-highlight: command not found
Git version is 1.8.4.3
% git --version
git version 1.8.4.3
I installed git via homebrew, but the path to diff-highlight wasn’t set, which seemed to be the cause.
% ln -s /usr/local/opt/git/share/git-core/contrib/diff-highlight/diff-highlight /usr/local/bin
After creating a symbolic link, I was able to use diff-highlight.
Reference Information
- Git の diff を美しく表示するために必要なたった 1 つの設定 #git - 詩と創作・思索のひろば
- [HomeBrew]gitのバージョンアップをするためにやったこと | DevAchieve
That’s all from the Gemba.