Remove deleted files from Git's index
If a lot of files have been deleted from the directory
using rm
rather than git rm
and it is
required to remove them from Git's index as well, use
for i in `git status | grep deleted | awk '{print $3}'`; do git rm $i; done
See Remove Deleted Files From Git
Copyright © Ben Bullock 2009-2024. All
rights reserved.
For comments, questions, and corrections, please email
Ben Bullock
(benkasminbullock@gmail.com).
/
Privacy /
Disclaimer