当我尝试执行checkin命令时,我收到错误No changes were matched by any arguments
,但该文件实际上已被更改!罪魁祸首似乎是TEE在编辑时没有自动检出文件,即使MSDN似乎暗示它应该有(source)。
好的大不了,所以我试着检查文件而不知道我必须再次进行更改。但是这一次我收到了一个新错误:
An error occurred: TF400032: The operation could not be completed because the workspace
WORKSPACE_NAME is a local workspace.
当我尝试做其他事情时,事情会变得更奇怪,比如简单的添加;它给出了同样的错误!似乎我唯一能做的就是使用tf get
将所有内容更新到最新版本。
我在几次尝试后不知所措: (现在我无法对服务器进行任何更改)
tf status
未报告更改tf checkin file.m
和tf checkin file.m -force
,两者均未报告任何变化tf get file.m
,但报告该文件是最新的。尝试tf get file.m -force
,这次它正确地用服务器版本tf checkout file.m
,但它报告了有关本地工作区的错误消息tf add file.m
,但它报告了有关本地工作区的相同错误消息以下是我的设置的一些细节:
TF_AUTO_SAVE_CREDENTIALS
在bash中设置工作区设置为:
tf workspace -new "WORKSPACE_NAME" -collection:https://example.visualstudio.com/defaultcollection
tf workfold -map "$/example_folder" -workspace:"WORKSPACE_NAME" "~/example_folder/"
答案 0 :(得分:0)
I'm not sure if it is relevant in your case, but for me that was the issue:
If you are connected to a cluster, with multiple computers/servers, the workspace is created for the specific server you were logged in to (although the storage is probably shared).
This results in the workspace having a computer name that mismatches the computer name from which you'd might later check in your file.
The only solution I found so far is to connect to the specific node which I was running the creation of the workspace and work from that node. (or to upload the edited file using the web interface). Same issue will rise if you work locally, but changed your computer name or any related configuration (domain for example).
Hope it helps...