Created
November 23, 2010 23:04
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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