Skip to content

Instantly share code, notes, and snippets.

@jlengstorf
Last active December 12, 2015 08:28
Show Gist options
  • Save jlengstorf/4743845 to your computer and use it in GitHub Desktop.
Save jlengstorf/4743845 to your computer and use it in GitHub Desktop.
Git command to remove all deleted files
# 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