Last active
December 12, 2015 08:28
-
-
Save jlengstorf/4743845 to your computer and use it in GitHub Desktop.
Git command to remove all deleted files
This file contains hidden or 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
# Removes all deleted files | |
git rm $(git ls-files -d) | |
# Removes deleted files in a given directory | |
git rm $(git ls-files -d path/to/subdir/.) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment