1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
10 .de Sp \" Vertical space (when we can't use .PP)
16 .ie \\n(.$>=3 .ne \\$3
20 .TH "GIT-CLEAN" 1 "" "" ""
22 git-clean \- Remove untracked files from the working tree
26 \fIgit\-clean\fR [\-d] [\-n] [\-q] [\-x | \-X]
32 Removes files unknown to git\&. This allows to clean the working tree from files that are not under version control\&. If the \fI\-x\fR option is specified, ignored files are also removed, allowing to remove all build products\&.
38 Remove untracked directories in addition to untracked files\&.
42 Don't actually remove anything, just show what would be done\&.
46 Be quiet, only report errors, but not the files that are successfully removed\&.
50 Don't use the ignore rules\&. This allows removing all untracked files, including build products\&. This can be used (possibly in conjunction with \fBgit\-reset\fR(1)) to create a pristine working directory to test a clean build\&.
54 Remove only files ignored by git\&. This may be useful to rebuild everything from scratch, but keep manually created files\&.
59 Written by Pavel Roskin <proski@gnu\&.org>
64 Part of the \fBgit\fR(7) suite