Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.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
git can';t签出扩展名奇怪的文件_Git - Fatal编程技术网

git can';t签出扩展名奇怪的文件

git can';t签出扩展名奇怪的文件,git,Git,我需要从本地服务器克隆/签出git存储库,但该存储库包含一个具有以下扩展名的文件 asmx?wsdl 我从git收到一条错误消息 error: unable to create file path/to/file/file.asmx?wsdl: Invalid argument fatal: unable to checkout working tree warning: Clone succeeded, but checkout failed. You can inspect what was

我需要从本地服务器克隆/签出git存储库,但该存储库包含一个具有以下扩展名的文件

asmx?wsdl

我从git收到一条错误消息

error: unable to create file path/to/file/file.asmx?wsdl: Invalid argument
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

我怎样才能解决这个问题?当你有本地副本时,我需要该文件,这样我们可以说是服务器,然后你可以进入项目中的服务器目录,你应该能够从repo中删除该文件,而无需克隆它


因此,您可以使用
git rm filename
提交并推送更改。然后,当您尝试克隆repo时,它应该可以在没有该文件的情况下工作

当您拥有本地副本(我们可以说是服务器)时,您可以转到项目中的服务器目录,并且您应该能够从repo中删除文件,而无需克隆它


因此,您可以使用
git rm filename
提交并推送更改。然后,当您尝试克隆repo时,它应该可以在没有该文件的情况下工作

我假设您正在使用Windows。Windows无法创建文件名为“”的文件。在Linux或MacOS下签出应该可以工作

如果不顾一切,您可以使用

git show master:path/to/file/file.asmx?wsdl

其中“master”是包含文件的分支。

我假设您使用的是Windows。Windows无法创建文件名为“”的文件。在Linux或MacOS下签出应该可以工作

如果不顾一切,您可以使用

git show master:path/to/file/file.asmx?wsdl

其中“master”是包含文件的分支。

您在windows上工作吗?您在windows上工作吗?