Skip to content

Instantly share code, notes, and snippets.

@majindageta
Created February 26, 2019 09:31
Show Gist options
  • Save majindageta/9558f7216cd172c43adfd3782168165a to your computer and use it in GitHub Desktop.
Save majindageta/9558f7216cd172c43adfd3782168165a to your computer and use it in GitHub Desktop.
https://rtyley.github.io/bfg-repo-cleaner/
clone del progetto: `git clone --mirror git://example.com/some-big-repo.git`
dentro questa cartella copiare il file java bfg
da terminale
`java -jar bfg-1.13.0.jar --delete-files sample.ts`
dopo bisogna:
`git reflog expire --expire=now --all && git gc --prune=now --aggressive`
e infine pushare (fatto quasi sempre da GUI)
Una volta fatto questa la history del branch è morta: bisogna riscaricarlo da capo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment