Skip to content

Commit

Permalink
Documentation/git-clean.txt: document that -f may need to be given twice
Browse files Browse the repository at this point in the history
This is needed in build automation where the tree really needs to
be reset to known state.

Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
mcfrisk authored and gitster committed Feb 26, 2015
1 parent 282616c commit bcd57cb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Documentation/git-clean.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ OPTIONS
-f::
--force::
If the Git configuration variable clean.requireForce is not set
to false, 'git clean' will refuse to run unless given -f, -n or
-i.
to false, 'git clean' 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. This affects also git submodules where the storage area
of the removed submodule under .git/modules/ is not removed until
-f is given twice.

-i::
--interactive::
Expand Down

0 comments on commit bcd57cb

Please sign in to comment.