Github文件大小限制已于6/18/13更改。现在不能推送 [英] Github file size limit changed 6/18/13. Can't push now

查看:1247
本文介绍了Github文件大小限制已于6/18/13更改。现在不能推送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

截至2013年6月18日这种变化如何影响我的现有存储库的文件超过这个限制?我在2个月前推出了一个大文件。

我有一个大文件,我已经在本地删除,但现在我无法推送任何内容。我得到一个远程错误...远程:错误:文件cron_log.log是126.91 MB;这超过了GitHub的文件大小限制为100 MB

我在原始推送后将文件添加到.gitignore中......但它仍然存在于远程(原始)



在本地删除它应该在原点(Github)将其删除? ...但是...它不会让我推,因为Github上有一个文件超过了限制...



https://github.com/blog/1533-new-file-size-limits



这些是我发出的命令和错误消息。

 
git add。
git commit -mdelete cron_log.log
git push origin master

remote:Error code:40bef1f6653fd2410fb2ab40242bc879
remote:warning:Error:Error GH413:Large files detected 。
remote:警告:有关更多信息,请参阅http://git.io/iEPt8g。
remote:error:文件cron_log.log是141.41 MB;这超过了GitHub的文件大小限制为100 MB
remote:错误:文件cron_log.log是126.91 MB;这超过了GitHub的文件大小限制为100 MB

到https://github.com/slinds(omited_here)/linexxxx(omited_here).git
! [远程拒绝] master - > master(预接收钩拒绝)
错误:未能将一些文件推送到'https://github.com/slinds(omited_here)

然后,我尝试了诸如

  git rm cron_log.log 
git rm --cached cron_log.log

同样的错误。

rlb.usa 指出,Github已经添加了一个文件大小限制,防止您推送大于100MB的文件。您试图在新提交中删除该文件并试图推送该文件。这失败了,因为你不只是推动最后一次提交,还有其他三次提交。这三个提交包含141MB和126MB大小的cron_log版本。为了解决这个问题,你有两个选择:




  • 运行 git rebase -i origin / master ,设置每个提交以编辑并删除每个文件,使用 git commit --amend

  • 使用 BFG Repo-Cleaner 清理所有的历史记录。


How does this change as of June 18, 2013 affect my existing repository with a file that exceeds that limit? I last pushed 2 months ago with a large file.

I have a large file that I have removed locally but I can not push anything now. I get a "remote error" ... remote: error: File cron_log.log is 126.91 MB; this exceeds GitHub's file size limit of 100 MB

I added the file to .gitignore after original push... But it still exists on remote (origin)

Removing it locally should get rid of it at origin(Github) right? ... but ... it is not letting me push because there is a file on Github that exceeds the limit...

https://github.com/blog/1533-new-file-size-limits

These are the commands I issued plus error messages..

git add .
git commit -m "delete cron_log.log"
git push origin master

remote: Error code: 40bef1f6653fd2410fb2ab40242bc879
remote: warning: Error GH413: Large files detected.
remote: warning: See http://git.io/iEPt8g for more information.
remote: error: File cron_log.log is 141.41 MB; this exceeds GitHub's file size limit of 100 MB
remote: error: File cron_log.log is 126.91 MB; this exceeds GitHub's file size limit of 100 MB

To https://github.com/slinds(omited_here)/linexxxx(omited_here).git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/slinds(omited_here)

I then tried things like

git rm cron_log.log
git rm --cached cron_log.log

Same error.

解决方案

As rlb.usa noted, Github has added a file size limit that prevents you from pushing files > 100MB. You tried to remove the file in a new commit and tried to push that. That fails, because you are not just pushing that last commit, but also three others. Those three commits contain versions of cron_log that are 141MB and 126MB in size. They cause your push to fail.

To fix that, you have two options:

  • Run git rebase -i origin/master, set every commit to edit and remove the file in each with git commit --amend.
  • Use the BFG Repo-Cleaner to clean all your history.

这篇关于Github文件大小限制已于6/18/13更改。现在不能推送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆