summaryrefslogtreecommitdiff
path: root/Documentation/git-clean.txt
diff options
context:
space:
mode:
authorMikko Rapeli <mikko.rapeli@iki.fi>2015-02-26 13:16:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-02-26 21:10:40 (GMT)
commitbcd57cb9e1583fe5174112422caba0397f7ae5f6 (patch)
tree6119bc56f55340d03876f0b11281753608dd17ef /Documentation/git-clean.txt
parent282616c72d1d08a77ca4fe1186cb708c38408d87 (diff)
downloadgit-bcd57cb9e1583fe5174112422caba0397f7ae5f6.zip
git-bcd57cb9e1583fe5174112422caba0397f7ae5f6.tar.gz
git-bcd57cb9e1583fe5174112422caba0397f7ae5f6.tar.bz2
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>
Diffstat (limited to 'Documentation/git-clean.txt')
-rw-r--r--Documentation/git-clean.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/Documentation/git-clean.txt b/Documentation/git-clean.txt
index 8997922..719f076 100644
--- a/Documentation/git-clean.txt
+++ b/Documentation/git-clean.txt
@@ -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::