How to Properly Remove Untracked Files With Git

However, this can get tedious pretty quickly if you have a lot of files, or if they’re spread across different hierarchical levels within the project’s file structure. After selecting it, you’ll see numbers assigned to each file: If you type something different from the three numbers, Git will—somewhat humorously—ask you to do it again: On […]

However, this can get tedious pretty quickly if you have a lot of files, or if they’re spread across different hierarchical levels within the project’s file structure. After selecting it, you’ll see numbers assigned to each file: If you type something different from the three numbers, Git will—somewhat humorously—ask you to do it again: On the other hand, if you press Enter without entering a valid number, Git simply says, “No more files to clean, exiting” and quits. Help Finally, this option—which you can access with h or 6—displays a useful yet concise help screen: Git Remove Untracked Files: Going Further Having covered the fundamentals of the “Git remove untracked files” operation, let’s now go a little bit deeper, explaining some more topics that might come in handy.
Source: CloudBees