Skip to content

Instantly share code, notes, and snippets.

@cfeduke
Created November 23, 2010 23:04
Show Gist options
  • Save cfeduke/712720 to your computer and use it in GitHub Desktop.
Save cfeduke/712720 to your computer and use it in GitHub Desktop.
Execute git rm for each file removed from the file system after you've done it
#!/bin/bash
# chmod +x git-rm-after.sh
# add alias git-rm-after ~/git-rm-after.sh to ~/.bashrc
for i in `git status | grep deleted | awk '{print $3}'`; do git rm $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment