我正在使用这个版本的gitp4.py,我在试图克隆回购时出现了以下错误。
git p4 clone //xxx/xxx@all xxx
Importing from //xxx/xxx@all into xxx
Initialized empty Git repository in /cygdrive/d/xxx/.git/
Import destination: refs/remotes/p4/master
Importing revision 00000(0%)
Importing revision 00001(2%) Error from p4 print for //xxx/xxx/xxx/SomeFile.cs: Can't map //yyy/yyy/yyy/SomeFile.cs注意,根路径是不同的。我的repo (xxx)似乎包含一个引用另一个repo (yyy)的文件。我没办法拿到那本书。是否有办法通过跳过此修订或从历史记录中删除此文件来防止此错误?
谢谢你,M。
发布于 2017-04-07 08:50:07
如果您不需要整个历史记录,您可以用一系列的修订来替换@all。
否则:
p4 obliterate删除该文件。https://stackoverflow.com/questions/43268435
复制相似问题