Skip to content

Instantly share code, notes, and snippets.

@zxshinxz
Last active April 24, 2017 08:34
Show Gist options
  • Save zxshinxz/4f9218f06880ef6ac8300fa1d465ccd3 to your computer and use it in GitHub Desktop.
Save zxshinxz/4f9218f06880ef6ac8300fa1d465ccd3 to your computer and use it in GitHub Desktop.
remove unwanted history from git
git clone --mirror git://example.com/some-big-repo.git
bfg --delete-files unwanted.file
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment