Skip to content

Instantly share code, notes, and snippets.

@git-ashish
Last active December 16, 2015 10:18
Show Gist options
  • Select an option

  • Save git-ashish/5418710 to your computer and use it in GitHub Desktop.

Select an option

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