summaryrefslogtreecommitdiffstats
path: root/git-clean.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-10-11 16:28:25 +0900
committerJunio C Hamano <gitster@pobox.com>2019-10-11 16:28:25 +0900
commit6c6b0e5a189ca5f922b8d1535d0795a34176a1a1 (patch)
treed1796d66e7153f2ccf6b022e8fbaa5c647539a46 /git-clean.html
parent48cd3f1251acf31e83d2e59ddf2176aa8e84290c (diff)
downloadgit-htmldocs-6c6b0e5a189ca5f922b8d1535d0795a34176a1a1.tar.gz
Autogenerated HTML docs for v2.23.0-606-g08da
Diffstat (limited to 'git-clean.html')
-rw-r--r--git-clean.html18
1 files changed, 10 insertions, 8 deletions
diff --git a/git-clean.html b/git-clean.html
index 2b55a2fe1..df37e4272 100644
--- a/git-clean.html
+++ b/git-clean.html
@@ -775,10 +775,12 @@ are affected.</p></div>
</dt>
<dd>
<p>
- Remove untracked directories in addition to untracked files.
- If an untracked directory is managed by a different Git
- repository, it is not removed by default. Use -f option twice
- if you really want to remove such a directory.
+ Normally, when no &lt;path&gt; 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
+ files matching the specified paths (with exceptions for nested
+ git directories mentioned under <code>--force</code>) will be removed.
</p>
</dd>
<dt class="hdlist1">
@@ -791,9 +793,9 @@ are affected.</p></div>
<p>
If the Git configuration variable clean.requireForce is not set
to false, <em>git clean</em> will refuse to delete files or directories
- unless given -f, -n or -i. Git will refuse to delete directories
- with .git sub directory or file unless a second -f
- is given.
+ unless given -f or -i. Git will refuse to modify untracked
+ nested git repositories (directories with a .git subdirectory)
+ unless a second -f is given.
</p>
</dd>
<dt class="hdlist1">
@@ -971,7 +973,7 @@ help
<div id="footer">
<div id="footer-text">
Last updated
- 2019-07-10 11:51:04 JST
+ 2019-10-11 16:25:30 JST
</div>
</div>
</body>