aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-reset.txt
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2021-09-27 16:33:48 +0000
committerJunio C Hamano <gitster@pobox.com>2021-09-27 13:38:37 -0700
commit0e29222e0c2f68118cdd3412515539b74433b732 (patch)
treecb22169e9bf6a07eb319409f74c1c15825f3e6cf /Documentation/git-reset.txt
parent94b7f1563ace91af823125e5b8895cb24b2c0e4a (diff)
downloadgit-0e29222e0c2f68118cdd3412515539b74433b732.tar.gz
Documentation: call out commands that nuke untracked files/directories
Some commands have traditionally also removed untracked files (or directories) that were in the way of a tracked file we needed. Document these cases. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-reset.txt')
-rw-r--r--Documentation/git-reset.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/git-reset.txt b/Documentation/git-reset.txt
index 252e2d4e47..6f7685f53d 100644
--- a/Documentation/git-reset.txt
+++ b/Documentation/git-reset.txt
@@ -69,7 +69,8 @@ linkgit:git-add[1]).
--hard::
Resets the index and working tree. Any changes to tracked files in the
- working tree since `<commit>` are discarded.
+ working tree since `<commit>` are discarded. Any untracked files or
+ directories in the way of writing any tracked files are simply deleted.
--merge::
Resets the index and updates the files in the working tree that are