SourceTree:错误:pathspec'Assets \ 017AssetData /…/ Lightmap-1778_comp_light.exr'与git已知的任何文件都不匹配

问题描述 投票:0回答:1

我想丢弃/删除一个神秘文件。(那是从某人那里来的]

路径为'Client/Assets\017AssetData/Scenes/LightingPronteraMaster_ProgressiveNew_E/Lightmap-1778_comp_light.exr'

一旦我丢弃它。出现错误日志。

    git
-c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks checkout --
Client/Assets\017AssetData/Scenes/LightingPronteraMaster_ProgressiveNew_E/Lightmap-1778_comp_light.exr
error: pathspec 'Client/Assets\017AssetData/Scenes/LightingPronteraMaster_ProgressiveNew_E/Lightmap-1778_comp_light.exr' did not match any file(s) known to git
Completed with errors, see above.

我还检查了项目文件夹。找不到此文件。我尝试隐藏/重置提交/切换分支。这些解决方案均无效。

**我注意到字符串路径中有一个反斜线。而其余的都使用正常的斜杠。这个神秘的\与这个错误有关吗?

请帮助

discard error logsreset all changes error

unity3d atlassian-sourcetree
1个回答
0
投票

已解决!

我从目前的工作中签出,以开发。这个神秘的文件完全消失了!然后,我再次切换回工作分支。

我想这是一个SourceTree错误。

© www.soinside.com 2019 - 2024. All rights reserved.