Debian

解決"error: GH001: Large files detected"問題


參考資訊:
1. git-large-file-storage

如下:

  Enumerating objects: 48, done.
  Counting objects: 100% (48/48), done.
  Delta compression using up to 4 threads
  Compressing objects: 100% (34/34), done.
  Writing objects: 100% (36/36), 69.85 MiB | 4.87 MiB/s, done.
  Total 36 (delta 16), reused 0 (delta 0)
  remote: Resolving deltas: 100% (16/16), completed with 5 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: 02c79347eed64aa2772f77a34a93a6883a819e06d4d236e1af34c44115de7bb8
  remote: error: See http://git.io/iEPt8g for more information.
  remote: error: File xxxxxx is 151.64 MB; this exceeds GitHub's file size limit of 100.00 MB
  To xxx
   ! [remote rejected] master -> master (pre-receive hook declined)
  error: failed to push some refs to 'xxx'

$ git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch xxxxxx'


返回上一頁