Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.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
git tf configure命令错误(git tf无需配置)_Git_Tfs_Git Tf - Fatal编程技术网

git tf configure命令错误(git tf无需配置)

git tf configure命令错误(git tf无需配置),git,tfs,git-tf,Git,Tfs,Git Tf,通过从TFS2012服务器“a”中提取项目,使用git Bash创建git存储库(repo1)后,我尝试使用以下命令从repo1目录中配置另一台TFS2012服务器“B”上的项目,如下所述: 但下面显示的是错误: 错误: git-tf: nothing to configure. please specify an option to configure 我试过用谷歌搜索这个错误,但找不到太多帮助 注意:最终我需要签入TFS2012服务器“B”,以保持更改 你能帮我解决这个错误吗? 谢谢如果您

通过从TFS2012服务器“a”中提取项目,使用git Bash创建git存储库(repo1)后,我尝试使用以下命令从repo1目录中配置另一台TFS2012服务器“B”上的项目,如下所述:

但下面显示的是错误:

错误:

git-tf: nothing to configure. please specify an option to configure
我试过用谷歌搜索这个错误,但找不到太多帮助

注意:最终我需要签入TFS2012服务器“B”,以保持更改

你能帮我解决这个错误吗?
谢谢

如果您已经配置了tfs回购,则会出现此错误。若要查看是否已对其进行配置,请执行以下操作

git-tf configure -l

如果您需要将其更改为另一个tfs回购,请使用--force开关。

您真的在使用backticks吗?您使用的是Windows还是Unix?如果是Windows:从Windows命令提示符?Git Bash?PowerShell?@EdwardThomson我正在使用Windows 7并通过Git Bash命令shell运行此命令。@EdwardThomson我没有在url中使用反勾号,只是stackoverflow要求将包含url的本地字符串用单引号括起来。这是
DefaultCollection*s*
还是
DefaultCollection
?你把收藏的名字打错了吗?@EdwardThomson对不起!这是DefaultCollection,这就是我在命令中使用的,只是在上面的问题中输入错误,但仍然没有乐趣。同样的错误。Josh,还没有配置任何回购协议,但是,当我查看列表时,请查看下面的输出。$git tf configure-l服务器URI:TFS服务器路径:$/WTMain默认深度:浅标记变更集提交:true在变更集中包含元数据注释:false。。。。回购协议不存在,所以还是一个问题,为什么它会失败:(.谢谢你的回答。
git-tf configure -l