Skip to content

Instantly share code, notes, and snippets.

@rodde177
Created June 1, 2015 13:51
Show Gist options
  • Save rodde177/a5d306dcbf6a5a91ac3d to your computer and use it in GitHub Desktop.
Save rodde177/a5d306dcbf6a5a91ac3d to your computer and use it in GitHub Desktop.
Remove files from git
git status | grep deleted | awk '{print $3}'
Now that we have our complete list of deleted files, we can 'git rm' them:
git rm `git status | grep deleted | awk '{print $3}'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment