X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Fgit-clean.txt;h=79fb9841441d02cd635dcdd2aecef42d38c6b59d;hb=80809062452a65146d73ae483415acbc737fabf1;hp=974e04ef1abaf4a3018b83b0323a46cbaa5339d4;hpb=6d1cdadbeeb03f40250526e29b1f1a91582911d8;p=git.git diff --git a/Documentation/git-clean.txt b/Documentation/git-clean.txt index 974e04ef1..79fb98414 100644 --- a/Documentation/git-clean.txt +++ b/Documentation/git-clean.txt @@ -47,12 +47,14 @@ OPTIONS -e :: --exclude=:: - Specify special exceptions to not be cleaned. Each is - the same form as in $GIT_DIR/info/excludes and this option can be - given multiple times. + In addition to those found in .gitignore (per directory) and + $GIT_DIR/info/exclude, also consider these patterns to be in the + set of the ignore rules in effect. -x:: - Don't use the ignore rules. This allows removing all untracked + Don't use the standard ignore rules read from .gitignore (per + directory) and $GIT_DIR/info/exclude, but do still use the ignore + rules given with `-e` options. This allows removing all untracked files, including build products. This can be used (possibly in conjunction with 'git reset') to create a pristine working directory to test a clean build.