2026-10-11 01:52 UTC
yes
Replies (5)
-
@deadbeef79000@lemmy.nz 2026-10-11 03:09
Nonono. This makes sense. It ignores all other gitignore files in all subdirectories. It would be one way to enforce concentrating all ignores into this file (or its ancestors).
-
@someacnt_@lemmy.world 2026-10-11 03:36
Out of curiousity, I searched about it. Turned out, there were actually people who wanted to ignore the gitignore file. stackoverflow.com/…/add-gitignore-to-gitignore
-
@fubarx@lemmy.world 2026-10-11 04:32
-
@ransomwarelettuce@lemmy.world 2026-10-11 06:40
funnily enough I did that and sometimes do in some projects in order to locally not commit IDE stuff or test folders. if I want to update the .gitignore in such cases I test local and change in the remote.
-
@LeapSecond@lemmy.zip 2026-10-11 07:26
FYI there is a command to ignore specific files locally: git update-index --skip-worktree from here. And you can later unignore it with –no-skip-worktree