Problem:
Can't push to github a specific commit that added PNG Images
In git bash CLI, on Windows, git push origin master
gets stuck on Total 23 (delta 1), reused 0 (delta 0)
, when I try push the response PNG images I added to the Online Portfolio Project for the Web Dev Front-End Nanodegree.
I tried what people suggested on several forums, by running on the CLI: git config --global http.postBuffer 524288000
. It doesn't work..
Then, after git add <all image files>
I had to change the permissions to 100755, with with git update-index --chmod=+x *
, on the images folder, because otherwise they would be set to create mode 100644
when I would commit the files. After I did that, all the image files finally were indexed by the commit as create mode 100755 images/img-xxxxxxxxxxx.png
, each.
Even after that, when i tried pushing the changes to the remote, it would still get stuck at Total 23 (delta 1), reused 0 (delta 0)
. But this time I went to sleep and, in the morning, there was the following answer on Bash CLI:
$ git push
Enumerating objects: 25, done.
Counting objects: 100% (25/25), done.
Delta compression using up to 4 threads
Compressing objects: 100% (23/23), done.
Writing objects: 100% (23/23), 3.98 MiB | 16.28 MiB/s, done.
Total 23 (delta 1), reused 0 (delta 0)
error: failed to push some refs to 'https://github.com/ricardobossan/portfolio.git'
But this time most of the commits were actually pushed to the remote, except that the PNG images still were not there, which is really frustrating.
And, worst of all, I still get stuck on the same message when I try to push changes: Total 23 (delta 1), reused 0 (delta 0)
..
Can anybody please help? I don't know what else to do.