Git fix file too large to push
If you can’t push because one or more files exeed the github limit of 100MB:
- Locally delete the large files
- Commit the deleted files
- Soft reset to the commit where the large file was added:
git reset --soft HEAD~x
- Recommit all the changes
- Push!
source