Skip to content

Instantly share code, notes, and snippets.

@hay-wire
Created August 14, 2018 01:51
Show Gist options
  • Save hay-wire/0527c9024b96e0824877612647b125ca to your computer and use it in GitHub Desktop.
Save hay-wire/0527c9024b96e0824877612647b125ca to your computer and use it in GitHub Desktop.
Git commit deleted files - when you have deleted a lot of unwanted files
# Taken from this blog - http://tylerfrankenstein.com/code/how-git-rm-all-deleted-files-shown-git-status
git commit `git status | grep deleted | awk '{print $2}'` -m "removed unwanted files"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment