[Git] diff-highlight: command not found エラー
Mac で git の diff-highlight を使おうとしたら、コマンドが見つからないというエラーが発生しました。
% git diff diff-highlight | less: diff-highlight: command not found |
git のバージョンは 1.8.4.3
% git --version git version 1.8.4.3 |
homebrew 経由で git インストールしているのですが diff-highlight への path が通っていないのが原因だったようです。
% ln -s /usr/local/opt/git/share/git-core/contrib/diff-highlight/diff-highlight /usr/local/bin |
シンボリックリンクを張ると、diff-highlight 使えました。
参考情報
- Git の diff を美しく表示するために必要なたった 1 つの設定 #git – 詩と創作・思索のひろば
- [HomeBrew]gitのバージョンアップをするためにやったこと | DevAchieve