How do I delete untracked local files from the current working tree?
git-clean – Remove untracked files from the working tree Synopsis GitHub clean [–d] [-f][-i] –n] I-p] (-m] the \’-q\’ [p], .-pattern> …-x | ?\n\nWhen recursively removing files that are not under version control, starting from the current directory, Description Cleans the working tree. Normally, only files unknown to Git are deleted, but files are also deleted if the -x option is specified; this can remove all build products (e.g., any optional path>… arguments are given).\n\nStep 1 is to indicate what will be deleted by the -n option: # Print out the list of files and directories that will have been deleted (dry run) git clean —n –d .\n\nClean Step – Beware: This will delete files: # Delete the files from the repository git clean –f .\n\nIf you have a problem with removing files that are not backed up by the run-through, to \’clean\’ the file that has been ignored and non-ignored files, or to run an e-f (non-infected file clean), or the re-cleaning of —fx that is thrown away.\n\nNote the case difference on the X for the two latter commands. If clean.requireForce is set to \”true\” (the default) in your configuration, one must specify -f otherwise nothing will actually happen. See git-clean docs for more information.\n\nIf the Git configuration variable clean.require is not set to false, git clean will not run unless -f (in a way of ensuring that all untracked files are untouched) – if it is given the standard ignore rules (such as the $GITignignore (along with GitHub reset) and $-n (per directory-run)–info/-exclude) to create an pristine working directory to test — it may be useful to rebuild everything from scratch-to-file file is maintained, but is kept by hand-– un-unt–in-trytry–not-re–it’s.