我无法 pull/推到 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
如何解决这个问题或删除 bitbucket 中的这些文件?
最佳答案
也许这会有所帮助,即使您的问题与 git rebase 无关:
基本上是说您必须关闭所有使用这些文件的程序(有时使用任务管理器)。
如果这不起作用,我建议将项目克隆到不同的位置,然后将您修改的所有文件复制到正确路径下的新位置。然后,您可以毫无问题地从那里提交和推送。
关于git 错误 : cannot stat <filename> : Protocol error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30414230/