Skip to content

Instantly share code, notes, and snippets.

@IvanTorresEdge
Created April 21, 2012 22:50
Show Gist options
  • Save IvanTorresEdge/2440091 to your computer and use it in GitHub Desktop.
Save IvanTorresEdge/2440091 to your computer and use it in GitHub Desktop.
Git: Delete already deleted files from repository
git status | grep deleted | cut -f2 | sed -e 's/deleted:\s*//g' | xargs git rm -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment