Friday, January 4, 2019

Solving "this exceeds GitHub's file size limit of 100 MB"

When You accidentally push large file to Github this warning will shown :

"this exceeds GitHub's file size limit of 100 MB"

To solve this problem is simple. Just type this command:

git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch YOUR-FILE'

This command will filter chosen file from push process
Share:

2 comments:

  1. THANK YOU!!!! :D I didn't understand how i was to remove that file from the push and commits, but this command did just that. Thank you so much! <3

    ReplyDelete
  2. Thank you! you saved me :)

    ReplyDelete