Created
July 21, 2020 12:55
-
-
Save freemanirl/6fb2b851363112cfce2d45b34b16d7fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git filter-branch --prune-empty --index-filter 'git log --pretty=format: --name-status | grep -i ^D | cut -f2- | sort -u | xargs git rm -r --cached --ignore-unmatch DoesNotExistInMyProject' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment