Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows Git:无法使用cygwin生成包含冒号的文件夹_Windows_Git_Github_Cygwin_Git Bash - Fatal编程技术网

Windows Git:无法使用cygwin生成包含冒号的文件夹

Windows Git:无法使用cygwin生成包含冒号的文件夹,windows,git,github,cygwin,git-bash,Windows,Git,Github,Cygwin,Git Bash,我们有一个存储库,其中一些文件夹名称中有冒号。在生成过程中,文件夹名称将使用冒号。当使用cygwin或git bash在windows上构建时,会生成错误 它给出了以下错误: Execution failed. Reason: Illegal char <:> at index 32: build/solution/Persisten ce Layer: MySQL or Oracle.xml 执行失败。原因:索引32处的非法字符:build/solution/Persisten

我们有一个存储库,其中一些文件夹名称中有冒号。在生成过程中,文件夹名称将使用冒号。当使用cygwin或git bash在windows上构建时,会生成错误

它给出了以下错误:

Execution failed. Reason: Illegal char <:> at index 32: build/solution/Persisten
ce Layer: MySQL or Oracle.xml
执行失败。原因:索引32处的非法字符:build/solution/Persisten
ce层:MySQL或Oracle.xml
我可以用什么方法解决这个问题?我尝试安装WSL,但在路径方面有一些限制


请对此提供帮助。

从技术上讲,Windows不会在文件路径中保留“:”。如果文件系统支持命名流(例如NTFS),则设备名称和命名文件流(例如“filename:streamname:streamtype”)通常都必须允许使用此选项。由于后者,所有Microsoft文件系统的文件名中都不允许使用“:”。某些第三方文件系统确实允许“:”,例如VirtualBox共享文件夹的“VBoxSharedFolderFS”。当然,如果高级库和程序硬编码假设什么是允许的,这几乎意味着什么。不可能使用Windows?WSL可能满足您的需要,但不清楚您所说的“路径方面的某些限制”是什么意思是的,我很乐意使用WSL签出代码,但正如文件夹名称所包含的:它以不同的方式出现。在构建时,它无法从WSL找到路径。