Skip to content

Instantly share code, notes, and snippets.

@bindiego
Created April 13, 2021 02:27
Show Gist options
  • Save bindiego/c6295e75308fe8b7aa6e93b45d2787b6 to your computer and use it in GitHub Desktop.
Save bindiego/c6295e75308fe8b7aa6e93b45d2787b6 to your computer and use it in GitHub Desktop.
remove git history
#!/bin/bash
git filter-branch -f --index-filter "git rm -rf --cached --ignore-unmatch <Path to File>" HEAD
git push --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment