Skip to content

Instantly share code, notes, and snippets.

@josejuansanchez
Last active August 29, 2015 14:16
Show Gist options
  • Save josejuansanchez/33e8a81267c1a252c7fc to your computer and use it in GitHub Desktop.
Save josejuansanchez/33e8a81267c1a252c7fc to your computer and use it in GitHub Desktop.
How to remove several files from a Git repository that have been deleted from disk
git rm $(git status | grep deleted | awk '{print $2}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment