diff options
author | Jared Hance <jaredhance@gmail.com> | 2010-07-20 15:35:56 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-07-20 16:52:53 -0700 |
commit | 07de4eba60cdf1b24f297ce2b2816d3403323352 (patch) | |
tree | ff10b334ae2e5592a715d101a59ae55de9dba6b3 /Documentation/git-clean.txt | |
parent | c5212b87dafb3f559ceb898bd9b40bfc3cd0ad68 (diff) | |
download | git-07de4eba60cdf1b24f297ce2b2816d3403323352.tar.gz git-07de4eba60cdf1b24f297ce2b2816d3403323352.tar.xz |
Add -e/--exclude to git-clean.
With the -e/--exclude option for git-clean, a user can specify files
that they haven't yet told git about, but either need for a short amount
of time or plan to tell git about them later. This allows one to still
use git-clean while these files are around without losing data.
Signed-off-by: Jared Hance <jaredhance@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-clean.txt')
-rw-r--r-- | Documentation/git-clean.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/git-clean.txt b/Documentation/git-clean.txt index a81cb6c28..60e38e6e2 100644 --- a/Documentation/git-clean.txt +++ b/Documentation/git-clean.txt @@ -8,7 +8,7 @@ git-clean - Remove untracked files from the working tree SYNOPSIS -------- [verse] -'git clean' [-d] [-f] [-n] [-q] [-x | -X] [--] <path>... +'git clean' [-d] [-f] [-n] [-q] [-e <pattern>] [-x | -X] [--] <path>... DESCRIPTION ----------- @@ -45,6 +45,12 @@ OPTIONS Be quiet, only report errors, but not the files that are successfully removed. +-e <pattern>:: +--exclude=<pattern>:: + Specify special exceptions to not be cleaned. Each <pattern> is + the same form as in $GIT_DIR/info/excludes and this option can be + given multiple times. + -x:: Don't use the ignore rules. This allows removing all untracked files, including build products. This can be used (possibly in |