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).
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).
FYI there is a command to ignore specific files locally: git update-index --skip-worktree <file_name> from here. And you can later unignore it with --no-skip-worktree
Out of curiousity, I searched about it. Turned out, there were actually people who wanted to ignore the gitignore file. https://stackoverflow.com/questions/10176875/add-gitignore-to-gitignore
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.
all 16 comments