将分支克隆或拉入 PhpStorm 时出现无效路径错误
Invalid path error while cloning or pulling a branch into PhpStorm
在 Windows 机器上使用 PhpStorm 并尝试从远程仓库执行 git pull
或 git clone
并且 returns 以下内容:
error: invalid path 'Docs/AdminHelp/en/Inventory/Contract financials | Financial fields calculation (recalculate_fields).md'
fatal: unable to checkout working tree
其他团队成员正在使用相同的 repo,但在我这边,我不断收到此错误。有办法解决这个问题吗?
Docs/AdminHelp/en/Inventory/Contract financials | Financial fields calculation (recalculate_fields).md
^^^
A pipe is not allowed in Windows file paths,因此您需要:
- 仔细检查您的同事是否在 Linux/Mac
上使用存储库
- 使用基于 Linux 的虚拟机(或者 WSL2,如果你的 Windows 是 Windows 10 最近的)
在那个基于 Linux 的环境中,您将能够签出存储库。
或者,您会要求您的同事git mv
/用更合理的名称重命名该文件。
在 Windows 机器上使用 PhpStorm 并尝试从远程仓库执行 git pull
或 git clone
并且 returns 以下内容:
error: invalid path 'Docs/AdminHelp/en/Inventory/Contract financials | Financial fields calculation (recalculate_fields).md'
fatal: unable to checkout working tree
其他团队成员正在使用相同的 repo,但在我这边,我不断收到此错误。有办法解决这个问题吗?
Docs/AdminHelp/en/Inventory/Contract financials | Financial fields calculation (recalculate_fields).md
^^^
A pipe is not allowed in Windows file paths,因此您需要:
- 仔细检查您的同事是否在 Linux/Mac 上使用存储库
- 使用基于 Linux 的虚拟机(或者 WSL2,如果你的 Windows 是 Windows 10 最近的)
在那个基于 Linux 的环境中,您将能够签出存储库。
或者,您会要求您的同事git mv
/用更合理的名称重命名该文件。