Skip to content

Commit bcd57cb

Browse files
mcfriskgitster
authored andcommitted
Documentation/git-clean.txt: document that -f may need to be given twice
This is needed in build automation where the tree really needs to be reset to known state. Signed-off-by: Mikko Rapeli <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 282616c commit bcd57cb

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)