Skip to content

Instantly share code, notes, and snippets.

@nozim
Last active December 9, 2015 03:11
Show Gist options
  • Save nozim/11143280 to your computer and use it in GitHub Desktop.
Save nozim/11143280 to your computer and use it in GitHub Desktop.
Remove all files deleted from index
git status --porcelain | grep -E '^ D' | sed -e "s/^ D //" | xargs git rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment