Skip to content

Instantly share code, notes, and snippets.

@AnasAboreeda
Created July 26, 2018 10:04
Show Gist options
  • Save AnasAboreeda/6e64a74f9d6d08cc8b08f2d434cf2927 to your computer and use it in GitHub Desktop.
Save AnasAboreeda/6e64a74f9d6d08cc8b08f2d434cf2927 to your computer and use it in GitHub Desktop.
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch packages/phoenix-data" HEAD
rm -rf .git/refs/original/
git reflog expire --all && git gc --aggressive --prune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment