Skip to content

Instantly share code, notes, and snippets.

@dcapwell
Created October 23, 2017 23:21
Show Gist options
  • Save dcapwell/af32b689dcf89ffbb6c5117e0f7fa1b6 to your computer and use it in GitHub Desktop.
Save dcapwell/af32b689dcf89ffbb6c5117e0f7fa1b6 to your computer and use it in GitHub Desktop.
Git remove file from history
git filter-branch --index-filter 'git update-index --remove path/to/file/in/git'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment