[Git] Use git clean to clear resources that are not added to Version Control

Source: Internet
Author: User

When users use version control tools, they do not know why there are often some Stored Resources. As shown in the following figure, we can clearly see that some of the memory saved when the program crashes has been saved.

 

These Stored Resources will be stored in the project where the product solution is located, so that when we make a commit operation, because the trial cases to be added to the version control will be mixed in, it is not easy to see the trial cases to be added to the version control at a glance.

 

If you have the same difficulty as the hacker, and you do not want to manually delete the target, you can use the GIT clean command to remove the license that has not been added to the version control. For example, we can directly download git clean-f.

 

Call git status again to check the status. We can see that all the pending cases that have not been added to the version control have been removed.

 

In addition to the legal case, in addition to-F, we can add-D to the version control list, such:

1 Git-F-d

From: http://www.dotblogs.com.tw/larrynung/archive/2012/12/20/85834.aspx

 

222

Error: The following untracked working tree files wocould be overwritten by checkout
Git clean-D-Fx ""

From: http://hi.baidu.com/xiaomeng008/item/fd523e6eed01392169105bc2

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.