Skip to content

Instantly share code, notes, and snippets.

@chris-rock
Created February 4, 2014 15:58
Show Gist options
  • Save chris-rock/8806414 to your computer and use it in GitHub Desktop.
Save chris-rock/8806414 to your computer and use it in GitHub Desktop.
Delete file from git history
git filter-branch --index-filter 'git rm --cached --ignore-unmatch -- file/*.txt' --prune-empty -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment