[Git] diff-highlight: command not found Error

Tadashi Shigeoka ·  Sun, December 15, 2013

When I tried to use git’s diff-highlight on Mac, I got a command not found error.

Git
% 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

That’s all from the Gemba.