In the daily development, we may or manually delete (delete key deleted) Some of the files, but we should have been deleted with the git rm filename command, but now we delete manually, then how to in git to say those manually deleted files delete it?
There are two ways we can delete files in git that are deleted manually (delete key deleted):
The first is to delete the files or folders you manually deleted with git rm files.
Of course, if you delete a lot of files, and distributed in different folders, the use of the first Git RM files method, obviously inconvenient, inefficient, then there is no faster method, the answer is yes. There are a lot of people who might think of git Add. or git rm. Two commands, however, after I test, these two commands still do not achieve the effect I want.
Let me show you another command to achieve this effect, git add-a. Or use git add--all. Here-A is a shorthand for--all.
Run, git add-a. After the original manual deletion of files, in Git has also been deleted.
How manually deleted files in git are deleted in git