(Just in case it makes a difference, this is on Github Enterprise)
I can't push changes out to a repo because I unwittingly committed two overly-large files to my local repo. These two files exceed the size allowed by github. I'm now locally several commits behind the origin. I don't care about the large files and have since removed them, but git push origin
still fails every time.
When I check the last commit in github, the repo is 10 days behind, meaning that not only do the large files fail, but the entire push fails. I apparently cannot push my repo anymore. Every time I try, I get this error:
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: File lib/abc.csv is 482.56 MB; this exceeds GitHub Enterprise's file size limit of 150.00 MB
remote: error: File lib/xyz.csv is 604.82 MB; this exceeds GitHub Enterprise's file size limit of 150.00 MB
To https://github.foobar.com/userx/myrepo
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.foobar.com/userx/myrepo'
- I want to push my current local repo out to the github repo.
- I don't care at all about the overly-large files. I do not need to push them out to github.
- My local repo is many commits ahead of the github repo. The commit with the overly-large files is not the most recent.
Is there a way to fix this without rolling my local repo all the way back to the commit where the large files were added?