Skip to content

Instantly share code, notes, and snippets.

@git-ashish
Last active December 16, 2015 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save git-ashish/5418710 to your computer and use it in GitHub Desktop.
Save git-ashish/5418710 to your computer and use it in GitHub Desktop.
Git - Unstage all deleted files
git status --porcelain | awk '$1 == "D" {print $2}' | xargs git reset HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment