How to totally remove a too big file from your github repository
April 19, 2019Oops, you added a too big file on your github repository, and… no way to totally remove it from your history.
Oh, wait, there is a workarround, thanks to Roberto Tyley, aka @rtyley and his
bfg-repo-cleaner
, a very simple java cli tool.
How to use it
First, you have to download it from https://rtyley.github.io/bfg-repo-cleaner/ , and follow the steps.
In a few words…
$ wget "https://repo1.maven.org/maven2/com/madgag/bfg/1.13.0/bfg-1.13.0.jar"
$ java -jar bfg.jar --strip-blobs-bigger-than 100M .git
$ git reflog expire --expire=now --all && git gc --prune=now --aggressive
$ git push
Little easter-egg, when the command succedeed, you will see a little political message…
You can rewrite history in Git - don't let Trump do it for real!
You can follow Roberto on twitter: @rtyley, and discover other repositories he made directly on his github: https://github.com/rtyley?tab=repositories.
You May Also Enjoy
A github template for your cordova and electron projects
Each time I need to do a little personal android project (with a light angularjs),I have to remember how to configure android environement, cordova packa...
Multiplix - an angularjs multiplication game for children
I know that angularjs is outdated, but I find it’s a fast way to do simple projects. For example, multiplix :) Mutiplix is a little (and simple) game for...
Trello board to ReactAdmin frontend
Trello is cool to manage lists. However, Cards are a bit ugly, and not designed to be shown as reactAdmin pretty does.Idea: show a frontend reactadmin, u...
Manage your jekyll blog as a cms with Forestry.io
Did you know that gkdv.net uses jekyll as blog engine? Jekyll is a tool written in ruby to generate static html pages from markdown files. And github pag...
When you click on links to various merchants on this site and make a purchase,
this can result in this site earning a commission.
Affiliate programs and affiliations include, but are not limited to,
the eBay Partner Network and Amazon.