GitHub bug whit zip files
Posted: Tue Jan 03, 2023 6:51 pm
If you encounter this bug on Github with your zipped files.
"Number of entries expected in End Of Central Directory does not correspond to number of entries in Central Directory."
My winning solution:
I just edited the .gitattributes file included in the same folder and added this line:
I then deleted the offending zip file from my repo on Github and uploaded a new version of the zip.
* You can also just renamed your zip file (it can be the same name - We are faking an update...) and make a push to uploaded a new version of the zip.
Now I can download zip files hosted on my Github.
As simple as that!
"Number of entries expected in End Of Central Directory does not correspond to number of entries in Central Directory."
My winning solution:
I just edited the .gitattributes file included in the same folder and added this line:
Code: Select all
*.zip binary
* You can also just renamed your zip file (it can be the same name - We are faking an update...) and make a push to uploaded a new version of the zip.
Now I can download zip files hosted on my Github.
As simple as that!