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 .
Written by Kamil Michalak
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#