問題
それは以下の質問に来たときにプッシュします:
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: f5b4ccf3739dd628391d2d522f1b1baf
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File object-detection/model/resnet50_coco_best_v2.0.1.h5 is 145.59 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File object-detection/model/yolo.h5 is 237.17 MB; this exceeds GitHub's file size limit of 100.00 MB
彼は100Mの限界を超えて二つの文書があることを非常に明確に述べています。
解きます
GitのLFSを使用してください
- 公式サイトではhttps://git-lfs.github.com/は gitの-LFS-窓-v2.8.0.exeをダウンロードし、インストールしてください。
- bashのコマンドライン開くには、
git lfs install
インストールを - あなたがプッシュする大きなファイルを追跡
git lfs track "*.h5"
、それは.gitattributesファイルを生成します。 - ここでは非常に重要であり、リポジトリにファイルをアップロード生成.gitattributesを踏むようにしてください三部作をアップロードすることです
git add .gitattributes
git commit -m "add .gitattributes"
git push origin master
この時間は、あなたの大きなファイルのアップロードを開始することができます。
参照
https://www.cnblogs.com/guxin/p/github-cannot-push-files-larger-than-100mb.html
https://blog.csdn.net/tyro_java/article/details/53440666