p4 sync -f 不覆盖打开的文件

p4 sync -f does not overwrite opened files

我已从我的 perforce depot 中检出一个文件并对其进行了一些更改,但没有提交这些更改。

现在,

p4 sync -f 不会通过从 perforce 获取最新版本来覆盖我的更改。

我希望我的代码在这里被覆盖。

使用 p4 revert 放弃您的更改。