• Clone a repository:
$ git p4 clone //depot/path/project
• Do some work in the newly created Git repository:
$ cd project
$ vi foo.h
$ git commit -a -m "edited foo.h"
• Update the Git repository with recent changes from p4,
rebasing your work on top:
$ git p4 rebase
• Submit your commits back to p4:
$ git p4 submit