git-p4 は、既存の p4 リポジトリのクローンを作成し、それを git との間でミラーリングするように設計されています。git-p4 が直接実行できない新しい p4 ブランチを作成しようとしています。したがって、これは少し複雑です。
次のことを試してください。
1. p4 のどこかに空のブランチを作成します。
新しい場所 //depot/foo を指すクライアントが必要です。
$ p4 client whatever....
また、p4 を満足させるために、空のファイルを作成する必要があります。
$ touch P4EMPTY
$ p4 -c your_client_name add P4EMPTY
$ p4 submit -d 'Add empty file'
2. クローンします。
$ cd /path/to/git/dir
$ git p4 clone //depot/foo
3. エクスポートするレポを取得します。
$ git remote add mycode git://whatever.git
$ git fetch mycode
$ git checkout -b upstream mycode/master
4. p4 リポジトリに対してリベースします。
$ git p4 rebase p4/master
5. 送信:
# We don't want to edit the commit message, so skip that part
$ git config git-p4.skipSubmitEdit true
$ P4CLIENT=your_client_name git p4 submit
とにかくそのような何か... :-)