Git - p4merge

Windows 下配置

先確保 p4merge 的路徑(默認:C:\Program Files\Perforce\)在環境變量中git

C:\Users\zjffu>where p4merge
  C:\Program Files\Perforce\p4merge.exe
C:\Users\zjffu>path
  ...;C:\Program Files\Perforce\;...

而後windows

git config --global diff.tool p4merge
git config --global difftool.p4merge.cmd 'p4merge "$LOCAL" "$REMOTE"'

git config --global merge.tool p4merge
git config --global mergetool.p4merge.cmd 'p4merge "$BASE" "$LOCAL" "$REMOTE" "$MERGED"'

使用bash

git difftool
git mergetool
相關文章
相關標籤/搜索