Skip to content

Instantly share code, notes, and snippets.

@jesserobertson
Created March 16, 2016 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jesserobertson/50155755ab02bf14673e to your computer and use it in GitHub Desktop.
Save jesserobertson/50155755ab02bf14673e to your computer and use it in GitHub Desktop.
Notes on burning out big git commits using the BFG repo cleaner on OSX

Installing the BFG

First make sure that you install Java using homebrew - the Oracle installer makes a terrible fscking mess of your machine :(

$ brew tap caskroom/cask
$ brew install brew-cask
$ brew cask install java

Then you can install the bfg using the homebrew recepie

$ brew install bfg

This gives you an alias bfg to java -jar bfg.jar.

Firing the BFG

You can pretty much follow the directions here. In my case I hadn't pushed the repo to github yet so just did a bare checkout from my local version:

$ cd /tmp
$ git clone --mirror ~/Developer/<my_repo>
Cloning into bare repository 'marc.git'...
done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment