Skip to content

Instantly share code, notes, and snippets.

@epayet
Created January 28, 2014 17:46
Show Gist options
  • Save epayet/8672517 to your computer and use it in GitHub Desktop.
Save epayet/8672517 to your computer and use it in GitHub Desktop.
Remove a directory from git history and files
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch angular-app/.idea/" --prune-empty -- --all
git push origin master --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment