Created
January 7, 2013 21:42
-
-
Save hroncok/4478765 to your computer and use it in GitHub Desktop.
Used for deleting (git rm) already deleted (rm) files. Added as git alias: rmdeleted = !gitrmdelted
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 | |
for FILE in `git status | grep deleted | awk '{print $3}'`; do | |
echo $FILE | |
git rm $FILE | |
done | |
exit $? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment