git 错误 : cannot stat <filename> : Protocol error

标签 git bitbucket pull

我无法 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 rebase error

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

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

关于git 错误 : cannot stat <filename> : Protocol error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30414230/

相关文章:

image - Docker:无法从损坏的拉取中删除中间图像

git - 如何在 SourceTree 中连接到我自己的 Git 服务器?

git - 确定在一个分支上而不是在另一个分支上的提交

git - Jenkins 在构建之前将稳定分支 merge 到每个 PR

amazon-web-services - 如何将以前的任务定义用于 ECS 和 bitbucket 管道部署

java - 共享项目后,eclipse egit,存储库无法推送、拉取或获取

git - git 手册部分的含义是什么?

git - 将 KDiff3 设置为默认 merge 工具

git - Bitbucket Pipeline - 使用 SSH key pull/推代码,无需拒绝权限

pull 时git merge 问题