I performed some load testing by using JMeter and then tried to checkin my project into git
by doing
git add .
git commit -m "message"
git push
I got an error message
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'
To resolve the error I did the following
git rm java_pid32554.hprof
rm java_pid32554.hprof
added */*.hprof to .gitignore
Now I can see that the offending file is deleted from local file system. To be sure I also did a search
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>)$
So the file is indeed gone.
Now when I try
git push
it again gives the same error message.... even though the file is deleted.
I will not mark this question as a duplicate of this
My question presents a direct error message from git and the answer below is much more clear and direct. The other thread is cluttered with different types of solutions.