未能推送到Github(这超出了GitHub的文件大小限制) [英] Failing to push to Github (this exceeds GitHub's file size limit)

查看:2932
本文介绍了未能推送到Github(这超出了GitHub的文件大小限制)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的本​​地分支没有上传到主服务器,因为错误输出显示downloads / ue4-test-8.zip为363.08 MB;这超过了GitHub的文件大小限制为100.00 MB我已经删除了此文件我所做的任何提交都被拒绝了。


  • 我已经删除了大文件。一切都会好起来的,所以我增加了新的文件到呼吸道

  • 现在,当我推送一个不存在的文件时,出现错误



我如何解决这个问题并重新推回这个回购?



这是我的输出日志:

 〜\Documents\GitHub\mryamz.github.io [master↑6 +0〜1 -0!]> git push 
计数对象:42,完成。
使用多达8个线程的增量压缩。
压缩对象:100%(28/28),完成。
写作对象:100%(42/42),360.48 MiB | 668.00 KiB / s,完成。
总计42(增量18),重复使用36(增量13)
远程:解决三角洲:100%(18/18),完成6个本地对象。
remote:错误:GH001:检测到大文件。你可能想尝试Git Large File Storage - https://git-lfs.github.com。
remote:错误:跟踪:92c21619bdc53df9a9cf2ed2b801c3d5
remote:错误:有关更多信息,请参阅http://git.io/iEPt8g。
remote:错误:文件下载/ ue4-test-8.zip为363.08 MB;这超过了GitHub的文件大小限制为100.00 MB
到https://github.com/mryamz/mryamz.github.io.git
! [remote rejected] master - > master(pre-receive hook refused)
错误:无法将一些文件推送到'https://github.com/mryamz/mryamz.github.io.git'
〜\Documents\GitHub \ mryamz.github.io [master↑6 +0〜1 -0!]> cd下载
〜\Documents\GitHub\mryamz.github.io\downloads [master↑6 +0〜1 -0!]> dir


目录:C:\ Users \admin\Documents\GitHub\mryamz.github.io\downloads


模式LastWriteTime长度名称
---- ------------- ------ ----
-a ---- 1/22 / 2017 4:58 PM 52509 Ampersand Studio v0.0.3.jar
-a ---- 1/11/2017 5:39 AM 3538 ascii_art .jar
-a ---- 7/26 / 2017 6:00 PM 133830 ClientSide.jar
-a ---- 3/3/2017 6:39 PM 69347251 Defend_The_Train.jar
-a ---- 2017/1/11 6:11 AM 2896549 Doppler_Effect.jar
-a ---- 1/9/2017 8:01 PM 10315457 friction_sim.jar
-a ---- 2017/7/24 23:45 208804 jna​​tivehook- 2.1.0.jar
-a ---- 2017/4/24 9:15 890923 Ludum_Dare_38.jar
-a ---- 2017/4/23 14:36 1759272 Ludum_Dare_38_SRC。 zip
-a ---- 5/12/2017 12:47 AM 6259 MBS.jar
-a ---- 2 / 18/2017 2:43 PM 226755 Pascals's Triangle.jar
-a ---- 2/18/2017 3:33 PM 1660624 Quadratic Calculator.jar
-a ---- 7/26 / 2017 5:27 PM 35977 RawPCM_Player.jar
-a ---- 2017年1月11日上午6:18 10871259 Renassance v6.jar
-a ---- 2017/2/6 7 :34 PM 116175 Scorched Earth.jar
-a ---- 5/8/2016 8:55 PM 18151 ServerSide.jar
-a ---- 2017/7/26 6:12 9170 Simplix-Earth-Branch.jar
-a ---- 2/18/2017 2:38 PM 41453 Spirograph.jar
-a ---- 2017/4/30 12:44下午646609 sw.jar
-a ---- 1/11/2017 6:49 AM 1307614 Word Bank.jar


〜\Documents\GitHub\mryamz .github.io\downloads [master↑6 +0〜1 -0!]>


解决方案

我认为你有这个文件的提交。即使删除文件并进行新的提交,该文件也会保留在先前的提交中。和 git push 将所有缺少的提交发送到远程。



在推送之前,您必须重写git历史记录。如果没有 git log ,我无法用一个确切的命令来帮助你。 压扁提交可以完成这项工作。


My local branch is not uploading to master because, as the error output states, "downloads/ue4-test-8.zip is 363.08 MB; this exceeds GitHub's file size limit of 100.00 MB" I already removed this file and yet any commits I make get rejected.

  • I've removed the large file.
  • I thought everything would be fine so I added new files to the respiratory
  • Now I get error when going to push about a file that doesn't exist

How can I resolve this problem and get back to pushing this repo?

Here is my output log:

~\Documents\GitHub\mryamz.github.io [master ↑6 +0 ~1 -0 !]> git push
Counting objects: 42, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (28/28), done.
Writing objects: 100% (42/42), 360.48 MiB | 668.00 KiB/s, done.
Total 42 (delta 18), reused 36 (delta 13)
remote: Resolving deltas: 100% (18/18), completed with 6 local objects.
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: 92c21619bdc53df9a9cf2ed2b801c3d5
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File downloads/ue4-test-8.zip is 363.08 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/mryamz/mryamz.github.io.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/mryamz/mryamz.github.io.git'
~\Documents\GitHub\mryamz.github.io [master ↑6 +0 ~1 -0 !]> cd downloads
~\Documents\GitHub\mryamz.github.io\downloads [master ↑6 +0 ~1 -0 !]> dir


    Directory: C:\Users\admin\Documents\GitHub\mryamz.github.io\downloads


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----        1/22/2017   4:58 PM          52509 Ampersand Studio v0.0.3.jar
-a----        1/11/2017   5:39 AM           3538 ascii_art .jar
-a----        7/26/2017   6:00 PM         133830 ClientSide.jar
-a----         3/3/2017   6:39 PM       69347251 Defend_The_Train.jar
-a----        1/11/2017   6:11 AM        2896549 Doppler_Effect.jar
-a----         1/9/2017   8:01 PM       10315457 friction_sim.jar
-a----        7/24/2017  11:45 PM         208804 jnativehook-2.1.0.jar
-a----        4/24/2017   9:15 PM         890923 Ludum_Dare_38.jar
-a----        4/23/2017   2:36 PM        1759272 Ludum_Dare_38_SRC.zip
-a----        5/12/2017  12:47 AM           6259 MBS.jar
-a----        2/18/2017   2:43 PM         226755 Pascals's Triangle.jar
-a----        2/18/2017   3:33 PM        1660624 Quadratic Calculator.jar
-a----        7/26/2017   5:27 PM          35977 RawPCM_Player.jar
-a----        1/11/2017   6:18 AM       10871259 Renassance v6.jar
-a----        2/16/2017   7:34 PM         116175 Scorched Earth.jar
-a----         5/8/2016   8:55 PM          18151 ServerSide.jar
-a----        7/26/2017   6:12 PM           9170 Simplix-Earth-Branch.jar
-a----        2/18/2017   2:38 PM          41453 Spirograph.jar
-a----        4/30/2017  12:44 PM         646609 sw.jar
-a----        1/11/2017   6:49 AM        1307614 Word Bank.jar


~\Documents\GitHub\mryamz.github.io\downloads [master ↑6 +0 ~1 -0 !]>

解决方案

I think that you have a commit with this file. Even if you delete the file and make a new commit, the file is persisted in a previous commit. And git push send all the missing commits to the remote.

You have to rewrite git history before pushing it. Without a git log, I can't help you with an exact command. Squashing Commits can do the job.

这篇关于未能推送到Github(这超出了GitHub的文件大小限制)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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