diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-08-18 12:17:02 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-08-18 12:17:02 -0700 |
commit | 8d8c92521c9bfac1eeefb4d260e9eb903b429bb6 (patch) | |
tree | 78c63fa2f7e7fc58db1064e3c29d25b4933009b0 /Documentation | |
parent | c1807defb83299dd85117c0e6b94fb7d4ade97c7 (diff) | |
parent | 2c76c3fecee688f88440db4167813cc25efd0388 (diff) | |
download | git-8d8c92521c9bfac1eeefb4d260e9eb903b429bb6.tar.gz |
Merge branch 'jh/clean-exclude'
* jh/clean-exclude:
Add test for git clean -e.
Add -e/--exclude to git-clean.
Diffstat (limited to 'Documentation')
-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 a81cb6c280..60e38e6e27 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 |