git clone multiple p4 paths in one git repo

前端 未结 2 469
后悔当初
后悔当初 2021-01-05 05:50

I know that if I need to clone a perforce an existing p4 repository using command

git p4 clone //depot/path/project

But what if I want to m

2条回答
  •  花落未央
    2021-01-05 06:38

    You can do this with the --use-client-spec option to git-p4. See the "CLIENT SPEC" section in the git-p4 documentation.

    When you use this option, git-p4 uses your Perforce client view to map depot paths into your Git repository. By setting up a Perforce client with the mappings you want, you can selectively import parts of your Perforce depot.

提交回复
热议问题