Skip to content

Instantly share code, notes, and snippets.

@JoshuaEstes
Created January 27, 2012 03:16
Show Gist options
  • Save JoshuaEstes/1686776 to your computer and use it in GitHub Desktop.
Save JoshuaEstes/1686776 to your computer and use it in GitHub Desktop.
Bash one liner to remove all the files from git repo that are marked as deleted
for file in $(git ls-files --deleted); do git rm "$file"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment