Skip to content

Instantly share code, notes, and snippets.

@kcmckell
Created January 30, 2013 07:59
Show Gist options
  • Save kcmckell/4671534 to your computer and use it in GitHub Desktop.
Save kcmckell/4671534 to your computer and use it in GitHub Desktop.
Super useful shell one-liner to git-remove all deleted files. Credit goes to "Saeb" on <a href="http://stackoverflow.com/questions/1402776/how-do-i-commit-all-deleted-files-in-git">Stackoverflow</a>.
for x in `git status | grep deleted | awk '{print $3}'`; do git rm $x; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment