Skip to content

Instantly share code, notes, and snippets.

@SvyatoslavPozhydaev
Created May 19, 2020 07:51
Show Gist options
  • Save SvyatoslavPozhydaev/00704dd3de017295638ce64d528df861 to your computer and use it in GitHub Desktop.
Save SvyatoslavPozhydaev/00704dd3de017295638ce64d528df861 to your computer and use it in GitHub Desktop.
git filter-branch --force --index-filter "git rm --cached --ignore-unmatch PATH-TO-YOUR-FILE-WITH-SENSITIVE-DATA" --prune-empty --tag-name-filter cat -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment