環境:Ubuntu 14.04,TFS命令行(TEE-CLC 12.0.1)。TFS如何找回本地刪除的文件
我在我的本地工作區中對文件進行了更改。但是,爲了放棄我的更改,我只是刪除了該文件,希望「tf get」能夠爲我提供最新的副本。不過,我得到一個錯誤,而不是:
$ tf get
Conflict settings.cpp - Unable to perform the get operation because
you have a conflicting edit.
The merge can't complete because the existing file isn't available:
我想我可以強制更新:
$ tf get settings.cpp /force
An argument error occurred: Unable to determine the workspace.
You may be able to correct this by running
'tf workspaces -collection:TeamProjectCollectionUrl'.
我會感謝你的幫助瞭解如何找回我的文件。問候。
不要使用'/ force',在這種情況下它試圖獲得一個名爲'/ force'的文件,而你的'/'文件夾沒有被映射。使用'-force'。 –