P4 - 更改客户端的工作空间 [英] P4 - change workspace for client

查看:49
本文介绍了P4 - 更改客户端的工作空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 p4 命令行更改工作区客户端,但我不知道是否可行.您可以使用 p4 workspace 命令创建、删除或编辑工作区,但我想使用 .bat 方法更改当前工作区.

I want to change the workspace client using the p4 command line but i don't know if its possible. You can create, delete or edit workspace using the p4 workspace command, but i want to change the current workspace with a .bat method.

示例:p4 -c MyClient changeworkspace myNewWorkspace

Exemple : p4 -c MyClient changeworkspace myNewWorkspace

如果您在第一步就知道是否可行.

If you know in first step if it's possible.

谢谢.

推荐答案

要么将 P4CLIENT 环境变量设置为您希望成为当前工作区的工作区名称,要么始终将该工作区名称作为 -c 的值传递p4 命令上的标志:http://www.perforce.com/perforce/doc.current/manuals/cmdref/env.P4CLIENT.html#1040647

Either set the P4CLIENT environment variable to the name of the workspace you want to be your current workspace, or consistently pass that workspace name as the value of the -c flag on your p4 commands: http://www.perforce.com/perforce/doc.current/manuals/cmdref/env.P4CLIENT.html#1040647

另请参阅设置环境变量的其他方法(许多人发现 P4CONFIG 文件很有帮助):http://www.perforce.com/perforce/doc.current/manuals/p4guide/02_config.html#1069873

See also these other ways to set the environment variable (many people find P4CONFIG files helpful): http://www.perforce.com/perforce/doc.current/manuals/p4guide/02_config.html#1069873

这篇关于P4 - 更改客户端的工作空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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