When I delete a file (or rename it) by using mv, rm or some other facility, the file shows as deleted when I do git status:
# Changes not staged for commit:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: ../src/main/..../myFile.java
Before creating a commit, it is cumbersome to do git rm <file> for each file, particularly as there is no auto-completion in the terminal for a file which isn’t there.
Is there a shorter way to remove the deleted files from the set of files tracked by git?
Thanks
I believe
git add -uwill do what you wish, from the documentation:Reference: http://git-scm.com/docs/git-add