无法删除git push中的大文件

时间:2019-02-11 22:59:13

标签: git

我对git cli有点陌生,当我在添加几个大文件后尝试将代码推送到仓库时,出现了此错误。如何从舞台上删除这些大文件并成功推送?

jxx@xx /cygdrive/c/Users/xxxx/Desktop/xxxx/gxxx
$ git push
Counting objects: 585, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (566/566), done.
Writing objects: 100% (585/585), 578.27 MiB | 2.63 MiB/s, done.
Total 585 (delta 239), reused 0 (delta 0)
remote: Resolving deltas: 100% (239/239), completed with 77 local objects.
remote: warning: File good software/Visio/Visio2016x64/visio.en-us/visiolr.cab is 68.00 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
remote: warning: File good software/Visio/Visio2016x64/vispro.ww/owow32ww.cab is 75.40 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: 14b82029e0e94027fa399ec483d85b7d
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File good software/Visio/Visio2016x64/vispro.ww/visproww.cab is 302.94 MB; this exceeds GitHub's file size limit of 100.00 MB
To github.com:condesccccxxx/xxxxx.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@github.com:xxxxx/xxx.git'

0 个答案:

没有答案