version control - How to add and commit removals made with "rm" instead of "git rm"? -
I used a group of files and directories from a gecket store using rm
, finder, etc. Has removed.
I am looking for a GIT command that will record them on the index as marked for extract, as if I had called them git rm
.
I understand git add -u
will do this with a group of other things. I want to take my order in the event of a special removal.
without spaces in file names:
$ git rm `Git ls-files -d`
more robust:
$ git ls-files -z -d | Xargs-0 git rm
Comments
Post a Comment