首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何重命名perforce depot中的文件

如何重命名perforce depot中的文件
EN

Stack Overflow用户
提问于 2012-11-09 06:21:42
回答 1查看 1.9K关注 0票数 2

在没有任何冲突的情况下重命名仓库中的文件的过程是什么?

在p4或命令行中有什么方法吗?

EN

回答 1

Stack Overflow用户

发布于 2012-11-09 06:29:50

是的,但是方法取决于你运行的Perforce的版本。以下是如何从命令行执行此操作(这是从"p4 help rename“的输出中复制的)。

代码语言:javascript
复制
In release 2009.1 and higher, you can use 'p4 move' to move or
rename files. Perforce clients prior to release 2009.1 do not
support 'p4 move'.  However, files in older clients can be
renamed by branching one file to another and deleting the
original file.  For example:

    p4 integrate fromFile toFile
    p4 delete fromFile
    p4 submit

For further information, see the help for the individual commands.

Note: Files renamed in this way are treated as branched files
rather than moved files in subsequent operations.
票数 7
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13298868

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档