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 <mikko.rapeli@iki.fi> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Mikko Rapeli committed
Feb 26, 2015 at 15:16 UTC
bcd57cb9e1583fe5174112422caba0397f7ae5f6
1 file changed
+6
-2
Documentation/git-clean.txt
+6
-2
@@ -34,8 +34,12 @@ OPTIONS
34
-f::
35
--force::
36
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.
43
44
-i::
45
--interactive::