#! /bin/bash for i in $(git status | grep deleted | awk {'print $2'}); do git rm $i done