Skip to content

Commit 4b23b5d

Browse files
committed
Merge branch 'mr/doc-clean-f-f' into maint
Documentation update. * mr/doc-clean-f-f: Documentation/git-clean.txt: document that -f may need to be given twice
2 parents 113bc16 + bcd57cb commit 4b23b5d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Documentation/git-clean.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ OPTIONS
3434
-f::
3535
--force::
3636
If the Git configuration variable clean.requireForce is not set
37-
to false, 'git clean' will refuse to run unless given -f, -n or
38-
-i.
37+
to false, 'git clean' will refuse to delete files or directories
38+
unless given -f, -n or -i. Git will refuse to delete directories
39+
with .git sub directory or file unless a second -f
40+
is given. This affects also git submodules where the storage area
41+
of the removed submodule under .git/modules/ is not removed until
42+
-f is given twice.
3943

4044
-i::
4145
--interactive::

0 commit comments

Comments
 (0)