我使用JMeter的执行一些负载测试,然后试图通过做Git的大文件检测
git add .
git commit -m "message"
git push
到我的项目签入混帐我得到一个错误信息
Counting objects: 13, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (13/13), done.
Writing objects: 100% (13/13), 50.13 MiB | 13.42 MiB/s, done.
Total 13 (delta 8), reused 0 (delta 0)
remote: error: GH001: Large files detected.
remote: error: File java_pid32554.hprof is 412.89 MB; this exceeds GitHub Enterprise's file size limit of 100.00 MB
To https://github.dev.myc.com/p/p.git
! [remote rejected] feature/branch -> feature/branch (pre-receive hook declined)
error: failed to push some refs to 'https://github.dev.myc.com/p/p.git'
要解决错误我做了以下
git rm java_pid32554.hprof
rm java_pid32554.hprof
added */*.hprof to .gitignore
现在
我可以看到,有问题的文件是从本地文件系统中删除。可以肯定我也做了搜索
MacBook-Pro:p (feature/branch>)$ sudo find/-name java_pid32554.hprof
Password:
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
MacBook-Pro:p (feature/branch>)$
所以文件确实没了。
现在,当我尝试
混帐推
再次给出了相同的错误消息....即使文件被删除。
我不会庆祝这个问题进行this
重复我的问题从混帐介绍了直接的错误信息和下面的答案更加明确和直接。另一个线程混杂着不同类型的解决方案。
可能的重复[如何从Git存储库中的提交历史中删除/删除大文件?](http://stackoverflow.com/questions/2100907/how-to-remove-delete-a-large-file-从提交历史功能于混帐资料库) –