无法推送到 github 添加了 PNG 图像的特定提交
Can't push to github a specific commit that added PNG Images
问题:
无法将添加了 PNG 图像的特定提交推送到 github
在 git bash CLI 中,在 Windows 上,git push origin master
卡在 Total 23 (delta 1), reused 0 (delta 0)
上,当我尝试推送我添加到的响应 PNG 图像时Web 开发前端纳米学位的在线作品集项目。
我在 CLI 上 运行 尝试了人们在几个论坛上的建议:git config --global http.postBuffer 524288000
。没用..
然后,在 git add <all image files>
之后,我不得不将图像文件夹的权限更改为 100755,并使用 git update-index --chmod=+x *
,否则它们会被设置为 create mode 100644
提交文件。在我这样做之后,所有图像文件最终都被提交索引为 create mode 100755 images/img-xxxxxxxxxxx.png
,每个。
即使在那之后,当我尝试将更改推送到遥控器时,它仍然会卡在 Total 23 (delta 1), reused 0 (delta 0)
。但是这次我去睡觉了,早上,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'
但是这次大部分提交实际上都被推送到了远程,除了PNG图像仍然没有,这真是令人沮丧。
而且,最糟糕的是,当我尝试推送更改时,我仍然卡在同一条消息上:Total 23 (delta 1), reused 0 (delta 0)
..
有人可以帮忙吗?我不知道还能做什么。
根据 Git 的版本,这可能与 Git 的推送方式有关。
由于它在最近的版本中发生了变化(),尝试升级到最新版本是值得的。
即Git for Windows 2.20, with (for instance) the PortableGit-2.20.0-64-bit.7z.exe
archive that you can uncompress anywhere you want, and add to your PATH
.
OP ricardobossan confirms :
It worked!!
It took a few minutes, but it worked properly this time. =D
问题:
无法将添加了 PNG 图像的特定提交推送到 github
在 git bash CLI 中,在 Windows 上,git push origin master
卡在 Total 23 (delta 1), reused 0 (delta 0)
上,当我尝试推送我添加到的响应 PNG 图像时Web 开发前端纳米学位的在线作品集项目。
我在 CLI 上 运行 尝试了人们在几个论坛上的建议:git config --global http.postBuffer 524288000
。没用..
然后,在 git add <all image files>
之后,我不得不将图像文件夹的权限更改为 100755,并使用 git update-index --chmod=+x *
,否则它们会被设置为 create mode 100644
提交文件。在我这样做之后,所有图像文件最终都被提交索引为 create mode 100755 images/img-xxxxxxxxxxx.png
,每个。
即使在那之后,当我尝试将更改推送到遥控器时,它仍然会卡在 Total 23 (delta 1), reused 0 (delta 0)
。但是这次我去睡觉了,早上,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'
但是这次大部分提交实际上都被推送到了远程,除了PNG图像仍然没有,这真是令人沮丧。
而且,最糟糕的是,当我尝试推送更改时,我仍然卡在同一条消息上:Total 23 (delta 1), reused 0 (delta 0)
..
有人可以帮忙吗?我不知道还能做什么。
根据 Git 的版本,这可能与 Git 的推送方式有关。
由于它在最近的版本中发生了变化(
即Git for Windows 2.20, with (for instance) the PortableGit-2.20.0-64-bit.7z.exe
archive that you can uncompress anywhere you want, and add to your PATH
.
OP ricardobossan confirms
It worked!!
It took a few minutes, but it worked properly this time. =D