Skip to content

Instantly share code, notes, and snippets.

@vnys
Last active June 4, 2019 09:41
Show Gist options
  • Save vnys/d2beb5b491520074e4f79ce8a594536c to your computer and use it in GitHub Desktop.
Save vnys/d2beb5b491520074e4f79ce8a594536c to your computer and use it in GitHub Desktop.
nuke mock-data with bfg

Nuking mock-data folder from git repo

Assuming: Mac, no java sdk installed, homebrew installed

$ brew cask install adoptopenjdk
$ brew install bfg
$ cd my-git-repo
$ bfg --delete-folders mock-data --no-blob-protection ./
$ git reflog expire --expire=now --all
$ git gc --prune=now --aggressive
$ git push origin --force --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment