问题描述
我有一个perforce客户端,它将几个perforce路径映射到我的本地客户端。
这些执行路径用于库和主代码行。
如何使用git-p4在单独的目录中设置整个客户端的克隆?
从我看到的git-p4只能克隆特定的软件仓库路径。我想克隆整个客户端
:假设我的perforce客户端是test_client。我想这样做:
cd git_area
cp ../perforce/test_client/.perforce。
git-p4克隆
或类似的东西将会把所有的目录分开git目录。另外一种方法是在perforce中使用branch-spec来将你的perforce路径合并到一个单独的位置。
只有在获得提示而无需历史记录的情况下才能使用该功能。
AFAIK, git-p4使用p4打印,所以它不关心本地映射。
I have a perforce client which maps several perforce paths into my local client.These perforce paths are for libraries and the main code line.
How do I use git-p4 to setup a clone of the entire client in a separate directory?
From what I see git-p4 can only clone specific depot paths. I would like to clonean entire client: suppose my perforce client is test_client. I would like to do:
cd git_area
cp ../perforce/test_client/.perforce .
git-p4 clone
or something similar which will pull in all the directories into this separate git directory.
Another alternative would be to use a branch-spec in perforce to combine your perforce paths into a single location.
That would only work if you're happy with just getting the tip, without history.
AFAIK, git-p4 uses p4 print, so it doesn't care about the local mapping.
这篇关于使用git-p4来设置perforce客户端的git克隆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!