git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Documentation/git-clean.txt: document that -f may need to be given twice

From
Mikko Rapeli <mikko.rapeli@iki.fi>
Date
Feb 26, 2015, 12:56 UTC
Message-ID
<1424955400-13897-1-git-send-email-mikko.rapeli@iki.fi>

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>
---
 Documentation/git-clean.txt |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/Documentation/git-clean.txt b/Documentation/git-clean.txt
index 94b6d19..872ab45 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
+	of the removed submodule under .git/modules/ is not removed until
+	-f is give twice.
 
 -i::
 --interactive::
-- 
1.7.10.4
Next: Mikko Rapeli
Message 1 of 4 in “Documentation/git-clean.txt: document that -f may need to be given twice”
  1. Documentation/git-clean.txt: document that -f may need to be given twiceMikko Rapeli, Feb 26, 2015
  2. Documentation/git-clean.txt: document that -f may need to be given twiceMikko Rapeli, Feb 26, 2015
  3. Documentation/git-clean.txt: document that -f may need to be given twiceMikko Rapeli, Feb 26, 2015
  4. Mikko RapeliFeb 26, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.