To stage only the deleted files:
for x in `git$(git status | grep deleted | awk '{print $3$2}'`;'); do git rm $x; done Or (the xargs way):
git status | awk '/deleted/ {print $3$2}' | xargs git rm You can alias your preferred command set for convenient later use.