this exceeds GitHub’s file size limit of 100.00 MB

Problem

have you every added any large file to git commit then you find later you can’t push to GitHub because it exceeds GitHub’s file size limit ?

Don’t worry there is multi solutions to this problem.

Solution

1- Install git-filter-repo using this link it is python based version tool for rewriting history

# How to install
https://github.com/newren/git-filter-repo/blob/main/INSTALL.md

# MacOS [Homebrew]
brew install git-filter-repo

# Ubuntu, Debian
sudo apt-get install git-filter-repo

2- Delete any large file from history using this command, but first you have to commit or stash you changes:

git filter-repo --strip-blobs-bigger-than 100M

3- Force push to your remote again.

git push --mirror

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Select your currency
EGP Egyptian pound