Skip to content

Instantly share code, notes, and snippets.

@ScullWM
Created September 11, 2014 15:04
Show Gist options
  • Save ScullWM/7aa19d7be7e6850bd544 to your computer and use it in GitHub Desktop.
Save ScullWM/7aa19d7be7e6850bd544 to your computer and use it in GitHub Desktop.
git filter-branch -f --index-filter 'git rm -r --cached --ignore-unmatch path/to/my/specific/file.ext' HEAD
git push -u origin master --force
Source : http://help.github.com/remove-sensitive-data/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment