Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pourmand1376/aaa519389734215cd8518c94d6b39ba3 to your computer and use it in GitHub Desktop.
Save pourmand1376/aaa519389734215cd8518c94d6b39ba3 to your computer and use it in GitHub Desktop.
Remove git file from all_history
git filter-branch --force --index-filter \
"git rm --cached --ignore-unmatch path/to/file" \
--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