使用git-p4来设置perforce客户端的git克隆 [英] Using git-p4 to setup a git clone of a perforce client

查看:364
本文介绍了使用git-p4来设置perforce客户端的git克隆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个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 clone an 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克隆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆