git错误:无法stat <filename>:协议错误

Dav*_*une 5 git pull bitbucket

我无法在bitbucket中拉/推到远程仓库或在本地更改分支.我收到以下错误.

 * branch            master     -> FETCH_HEAD
Performing inexact rename detection: 100% (651/651), done.
error: cannot stat 'public/location-chambre-meublee/pictures?body_icons.png': Protocol error
error: cannot stat 'public/location-chambre-meublee/pictures?chambre-meublee-montreal.jpg': Protocol error
error: cannot stat 'public/location-chambre-meublee/pictures?colocation-montreal-canada-irie-location.jpg': Protocol error
error: cannot stat 'public/location-chambre-meublee/pictures?colocation-montreal-etudiant-irie-location.jpg': Protocol error
error: cannot stat 'public/location-chambre-meublee/pictures?colocation-montreal-irie-location.jpg': Protocol error
error: cannot stat 'public/location-chambre-meublee/pictures?home-banner.jpg': Protocol error
error: cannot stat 'public/location-chambre-meublee/pictures?icons-1.png': Protocol error
error: cannot stat 'public/location-chambre-meublee/pictures?icons-2.png': Protocol error
error: cannot stat 'public/location-chambre-meublee/pictures?icons-3.png': Protocol error
error: cannot stat 'public/location-chambre-meublee/pictures?logo.png': Protocol error
error: cannot stat 'public/location-chambre-meublee/pictures?merci-banner.jpg': Protocol error
error: cannot stat 'public/location-chambre-meublee/pictures?proto.jpg': Protocol error
error: cannot stat 'public/location-chambre-meublee/pictures?recherche-colocation-montreal-irie-location.jpg': Protocol error
error: cannot stat 'public/location-chambre-meublee/pictures?trouver-une-colocation-a-montreal-irie-location.jpg': Protocol error
Run Code Online (Sandbox Code Playgroud)

如何在bitbucket中解决此问题或删除这些文件?

ran*_*bee 3

即使您的问题与 git rebase 无关,也许这会有所帮助:

git 变基错误

基本上,它是说您必须关闭使用这些文件的所有程序(有时使用任务管理器)。

如果这不起作用,我建议将项目克隆到其他位置,然后将修改的所有文件复制到正确路径下的新位置。然后,您可以毫无问题地从那里提交和推送。