]> git.ipfire.org Git - thirdparty/git.git/blobdiff - Documentation/git-clean.txt
Merge branch 'ch/clean-docfix' into maint-2.42
[thirdparty/git.git] / Documentation / git-clean.txt
index 24ad979ff952ad00b906465c20202f7d487ee492..5e1a3d5148c5ebaeb4e9110fc382dbeed5383b2d 100644 (file)
@@ -8,7 +8,7 @@ git-clean - Remove untracked files from the working tree
 SYNOPSIS
 --------
 [verse]
-'git clean' [-d] [-f] [-i] [-n] [-q] [-e <pattern>] [-x | -X] [--] <path>...
+'git clean' [-d] [-f] [-i] [-n] [-q] [-e <pattern>] [-x | -X] [--] [<pathspec>...]
 
 DESCRIPTION
 -----------
@@ -20,16 +20,16 @@ Normally, only files unknown to Git are removed, but if the `-x`
 option is specified, ignored files are also removed. This can, for
 example, be useful to remove all build products.
 
-If any optional `<path>...` arguments are given, only those paths
-are affected.
+If any optional `<pathspec>...` arguments are given, only those paths
+that match the pathspec are affected.
 
 OPTIONS
 -------
 -d::
-       Normally, when no <path> is specified, git clean will not
+       Normally, when no <pathspec> is specified, git clean will not
        recurse into untracked directories to avoid removing too much.
        Specify -d to have it recurse into such directories as well.
-       If any paths are specified, -d is irrelevant; all untracked
+       If a <pathspec> is specified, -d is irrelevant; all untracked
        files matching the specified paths (with exceptions for nested
        git directories mentioned under `--force`) will be removed.