Last Updated: February 25, 2016
·
538
· kamilmichalak

Call git rm on all deleted and not staged for commit files

Simply run this in your terminal

for item in $(git status | grep deleted | awk '{ print $3 }'); do 
    git rm $item; 
done

All files marked as deleted was removed and git status does not show them anymore .