How manually deleted files in git are deleted in git

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.