简体   繁体   中英

git error: cannot stat <filename> : Protocol error

I can't pull/push to remote repo in bitbucket or change branch locally. I am getting the following errors.

 * 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

How can I resolve this or remove these files in bitbucket?

Maybe this can help, even if your problem doesn't have to do with git rebase:

git rebase error

Basically it is saying that you have to close any programs using those files (sometimes using the task manager).

If this doesn't work, I would recommend cloning the project in a different location and then copying all the files you modified to that new location under the correct path. Then, you can commit and push from there without any problems.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM