File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,16 @@ a file checked into the repository which is a template or set of defaults which
223
223
can then be copied alongside and modified as appropriate. This second, modified
224
224
file is usually ignored to prevent accidentally committing it.
225
225
226
+ [[files-in-.gitignore-are-tracked]]
227
+ I asked Git to ignore various files, yet they are still tracked::
228
+ A `gitignore` file ensures that certain file(s) which are not
229
+ tracked by Git remain untracked. However, sometimes particular
230
+ file(s) may have been tracked before adding them into the
231
+ `.gitignore`, hence they still remain tracked. To untrack and
232
+ ignore files/patterns, use `git rm --cached <file/pattern>`
233
+ and add a pattern to `.gitignore` that matches the <file>.
234
+ See linkgit:gitignore[5] for details.
235
+
226
236
Hooks
227
237
-----
228
238
You can’t perform that action at this time.
0 commit comments