Skip to content

Instantly share code, notes, and snippets.

@alaahd
Created January 18, 2013 22:18
Show Gist options
  • Save alaahd/4569144 to your computer and use it in GitHub Desktop.
Save alaahd/4569144 to your computer and use it in GitHub Desktop.
remove deleted files from the index
//remove deleted files from the index (unstage)
git ls-files -d | xargs git rm --cached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment