When I delete a file (or rename it) using mv, rmor some other object, the file is displayed 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 perform git rm <file>for each file, in particular, since the terminal does not have autocomplete for a file that does not exist.
Is there a shorter way to remove deleted files from a set of files tracked by git?
thank
source
share