The official git-p4 extension creates a new Git repository from an already existing Perforce workspace.
gitp4setup.py
is to make it very straightforward to create a local git repository together with a new Perforce workspace using git-p4.
-
Checkout this repository
$ cd ~/workspace $ git clone https://github.com/martinm82/git-p4-setup.git
-
Create a Git and P4 workspace:
$ ./git-p4-setup/gitp4setup.py dev-mystream-myname-myhost //mydepot/mystream