Skip to content

Instantly share code, notes, and snippets.

@amccarty
Last active August 29, 2015 14:07
Show Gist options
  • Save amccarty/8fd28b953b79c6ce3d87 to your computer and use it in GitHub Desktop.
Save amccarty/8fd28b953b79c6ce3d87 to your computer and use it in GitHub Desktop.
git filter-branch: remove files by filename
git filter-branch --force --index-filter 'git rm -rf --cached --ignore-unmatch <filename>' --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