Skip to content

Instantly share code, notes, and snippets.

@cinlloc
Forked from crmaxx/install.log
Last active June 23, 2020 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cinlloc/6cd3bcb6d04153b7979d7e9eac275be7 to your computer and use it in GitHub Desktop.
Save cinlloc/6cd3bcb6d04153b7979d7e9eac275be7 to your computer and use it in GitHub Desktop.
Installing and configuring P4Merge for Git on Ubuntu
#!/bin/bash
# Install p4merge 20.1 on Ubuntu as Git merge tool
cd ~/Downloads
wget https://cdist2.perforce.com/perforce/r20.1/bin.linux26x86_64/p4v.tgz
tar zxvf p4v.tgz
sudo mkdir /opt/p4v
cd p4v-2020.1.1966006
sudo mv * /opt/p4v
sudo ln -s /opt/p4v/bin/p4merge /usr/local/bin/p4merge
cd ..
rm -rf p4v-2020.1.1966006
git config --global merge.tool p4merge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment