Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
p4passwd在git-p4 python中无效或未设置_Git_Perforce_Git P4 - Fatal编程技术网

p4passwd在git-p4 python中无效或未设置

p4passwd在git-p4 python中无效或未设置,git,perforce,git-p4,Git,Perforce,Git P4,所以我有我的性能和git设置。我可以通过命令行中的“p4 info”等简单命令轻松访问、修改perforce。我有一个perforce工作区,并在它旁边为git创建了一个新目录。每当我尝试“git p4 clone//perforce/(path)”时,它都会给出错误“perforce password(P4PASSWD)invalid或unset” 现在我尝试了两种不同的方法。我试着用 (一) 2) 在perforce workspace和git目录中创建了一个.perforce文件,其中 "

所以我有我的性能和git设置。我可以通过命令行中的“p4 info”等简单命令轻松访问、修改perforce。我有一个perforce工作区,并在它旁边为git创建了一个新目录。每当我尝试“git p4 clone//perforce/(path)”时,它都会给出错误“perforce password(P4PASSWD)invalid或unset”

现在我尝试了两种不同的方法。我试着用 (一)

2) 在perforce workspace和git目录中创建了一个.perforce文件,其中 "

3) 在git目录中创建了一个带有类似变量的.gitconfig文件

我不确定我做错了什么,但无论我做什么,git p4总是因为这个P4PASSWD问题而失败


任何帮助都将不胜感激。感谢您首先执行
p4登录以缓存您的凭据。

忘记添加,我正在使用Windows我注意到P4PORT不起作用。尝试P4HOST=host:portTry
p4登录
(不带
-p
)。请确保您已设置
P4PORT
P4USER
P4CLIENT
P4PORT
的格式为
server:port
。谢谢各位,但我的端口格式为xyz.perforce.com:1666,但我不知道它为什么不起作用。如果我只是使用p4 set命令设置它们,它会起作用吗?或者我会有一个特定的文件吗?我明白了我觉得我应该有一些配置文件,但我丢失了。你们介意告诉我你们的目录布局吗?
export P4USER=(username)
export P4HOST, P4PASSWD etc.
P4CLIENT= xzy
P4USER= abc
P4HOST= asd
P4PORT= .."
 P4PASSWD= (here i tried the password and alternatively the key I got by using p4 login -p )