git status. Oh my god there are many untracked deletes

Blog ยป git status. Oh my god there are many untracked deletes

Posted on 22 Feb 2011 16:44

git status is reporting that there are many deleted files. And you really want to remove them from repository. Do 'git rm' one by one? No, you don't need to:

git status | grep deleted:  | cut -d: -f2 | xargs git rm

If you like this page, please spread the word: diggdel.icio.usFacebook

You can contact me if you have questions or corrections.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License