git diffとしてOpendiffまたはPerforce P 4 Mergeを設定する超簡単な方法
が設定する超簡単な方法です
設置する方法がある
コマンド
git
使うopendiff
or p4merge
diffツールとしてgit config --global alias.diffy 'difftool -t opendiff -y'
git config --global alias.diffp 'difftool -t p4merge -y'
私たちがそれをした後に、将来的に、我々は使用できますgit diffy # to use opendiff
git diffp # to use p4merge
代わりに、bashやzshのエイリアスを使用できます.alias gitd='git difftool -t opendiff -y'
alias gitd2='git difftool -t p4merge -y'
diffツールの使用方法を確認するには、次の手順に従います.git difftool --tool-help
詳細設置する方法がある
git diff
Xcodeのfilemergeを使うopendiff
, またはPerforceのp4merge
. 通常、このメソッドは外部シェルスクリプトを設定し、diff.external
スクリプトを使用する.コマンド
git difftool
, 外部スクリプトを必要とせずに簡単にタスクを実行できます.余分な利点は、我々は使用することができますopendiff
or p4merge
変更なしでdiff.external
使用するときに注意してくださいp4merge
, 私たちのパスに追加する必要があります/Applications/p4merge.app/Contents/MacOS
MacでReference
この問題について(git diffとしてOpendiffまたはPerforce P 4 Mergeを設定する超簡単な方法), 我々は、より多くの情報をここで見つけました https://dev.to/kennethlum/super-quick-way-to-set-up-opendiff-or-perforce-p4merge-as-git-diff-3paテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol