$ ~edev jim@extroverteddeveloper ../../posts homeprojectsblog

$ cd ~/blog && $ cat 2012-7-20-git-p4-alias-on-windows-html.md

Git p4 alias on Windows

2012-07-20·1 min read·CodingGitPerforceWindows

Because this information is apparently not available anywhere on the internet I’m going to write it here:

git config —global alias.p4 !‘“C:\Program Files (x86)\Git\bin\git-p4.py”’

Please note that it’s single quote, then double quote, and closes double quote, single quote

Or inside your .gitconfig this is what it should look like:

[alias]

p4 = !’C:\Program Files (x86)\Git\bin\git-p4.py’

This is with git 1.7.10.msysgit.1, on Windows 7 x64. YMMV on other configurations.