diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-06-30 15:33:45 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-07-29 12:22:30 -0700 |
commit | a0f4afbe87ddda7902e36350d163dea146166550 (patch) | |
tree | 9c90142f461b86ef045d672793b95f135be1970f /Documentation/git-clean.txt | |
parent | 0a53e9ddeaddad63ad106860237bbf53411d11a7 (diff) | |
download | git-a0f4afbe87ddda7902e36350d163dea146166550.tar.gz |
clean: require double -f options to nuke nested git repository and work tree
When you have an embedded git work tree in your work tree (be it
an orphaned submodule, or an independent checkout of an unrelated
project), "git clean -d -f" blindly descended into it and removed
everything. This is rarely what the user wants.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-clean.txt')
-rw-r--r-- | Documentation/git-clean.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/git-clean.txt b/Documentation/git-clean.txt index be894af39f..ae8938b2de 100644 --- a/Documentation/git-clean.txt +++ b/Documentation/git-clean.txt @@ -27,6 +27,9 @@ OPTIONS ------- -d:: Remove untracked directories in addition to untracked files. + If an untracked directory is managed by a different git + repository, it is not removed by default. Use -f option twice + if you really want to remove such a directory. -f:: If the git configuration specifies clean.requireForce as true, |