gpt4 book ai didi

linux - TFVC "Undo Unchanged"Ubuntu 管道中的错误

转载 作者:行者123 更新时间:2023-12-03 10:01:10 28 4
gpt4 key购买 nike

我正在尝试在 Linux TFVC 管道中运行“撤消未更改”命令。

这些命令从 bash 脚本运行:

tf workspaces -login:${credentials} -collection:${collectionURL}
tf checkout * -recursive -login:${credentials}
tf uu * -recursive -login:${credentials} -collection:${collectionURL}
tf checkin * -recursive -comment:${comment} -login:${credentials} -noprompt

问题是第三个命令失败:
tf uu * -recursive -login:${credentials} -collection:${collectionURL}

出现错误:
An error occured: There is no working folder mapping for '/home/user/tfsAgent/_work/1/s/folder_name'

我知道问题是我没有直接映射到目录'folder_name':相反,我映射到它的几个子目录。

源代码控制中没有特定路径,我可以直接映射到目录“folder_name”。
没有解决方法吗?

任何帮助将不胜感激。

最佳答案

看来您正在尝试使用 tf uu命令撤消对批处理文件中未修改文件的 checkout 。

该命令需要在工作空间中调用,文件夹应该有映射关系。

An error occured: There is no working folder mapping for '/home/user/tfsAgent/_work/1/s/folder_name'



根据报错,需要使用 tf workspace命令到目标文件夹,在其中 cd 并运行 tf uu 命令。

关于linux - TFVC "Undo Unchanged"Ubuntu 管道中的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61574392/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com