Lets configure git to use p4merge
Prerequisits
We need some things installed on the local machine.- git bash installed
- p4merge installed https://www.perforce.com/downloads/integrations
Edit .gitconfig
open a terminalgit config --global merge.tool p4merge
git config --global mergetool.p4merge.path "<path/to/p4merge.exe>"
git config --global mergetool.prompt false
git config --global diff.tool p4merge
git config --global difftool.p4merge.path "<path/to/p4merge.exe>"
git config --global difftool.prompt false
This will make git use p4merge for diff and merging your files visualy
You can test this new difftool by comparing unstaged changes like that:
git difftool
Keine Kommentare:
Kommentar veröffentlichen