summaryrefslogtreecommitdiffstats
path: root/gitignore.html
diff options
context:
space:
mode:
Diffstat (limited to 'gitignore.html')
-rw-r--r--gitignore.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/gitignore.html b/gitignore.html
index 4252d5687..731f7c825 100644
--- a/gitignore.html
+++ b/gitignore.html
@@ -955,7 +955,9 @@ those in <code>$GIT_DIR/info/exclude</code>.</p></div>
<div class="paragraph"><p>The purpose of gitignore files is to ensure that certain files
not tracked by Git remain untracked.</p></div>
<div class="paragraph"><p>To stop tracking a file that is currently tracked, use
-<em>git rm --cached</em>.</p></div>
+<em>git rm --cached</em> to remove the file from the index. The filename
+can then be added to the <code>.gitignore</code> file to stop the file from
+being reintroduced in later commits.</p></div>
<div class="paragraph"><p>Git does not follow symbolic links when accessing a <code>.gitignore</code> file in
the working tree. This keeps behavior consistent when the file is
accessed from the index or a tree versus from the filesystem.</p></div>
@@ -1071,7 +1073,7 @@ everything within <code>foo/bar</code>):</p></div>
<div id="footer">
<div id="footer-text">
Last updated
- 2021-10-29 16:18:45 PDT
+ 2023-05-10 11:57:07 PDT
</div>
</div>
</body>