this exceeds GitHub’s file size limit of 100.00 MB

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

AHMED ELKHAYYAT
https://elkhayyat.me

I am a very keen individual that enjoys developing Python Programming Language. I have always loved computers and technology, ever since childhood. A team player who loves to work with other people on innovative projects and to take on challenges as an opportunity to grow as an individual in both a professional and personal capacity.

Leave a Reply

Select your currency
USD United States (US) dollar