docs: clarify git rm --cached function in gitignore note

Explain to users that the step to untrack a file will not also prevent them from getting added in the future. Signed-off-by: Sohom Datta <sohom.datta@learner.manipal.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Sohom Datta committed May 3, 2023 at 21:46 UTC 0c5308af30f7f3a810aa64e74152a8df7c81e87c
1 file changed +3 -1
Documentation/gitignore.txt
+3 -1
@@ -146,7 +146,9 @@ The purpose of gitignore files is to ensure that certain files
146 not tracked by Git remain untracked.
147
148 To stop tracking a file that is currently tracked, use
149 -'git rm --cached'.
149 +'git rm --cached' to remove the file from the index. The filename
150 +can then be added to the `.gitignore` file to stop the file from
151 +being reintroduced in later commits.
152
153 Git does not follow symbolic links when accessing a `.gitignore` file in
154 the working tree. This keeps behavior consistent when the file is