uuid: - value: 46b346f5-6f58-4e3d-b45d-dfb3d70d25d2 langcode: - value: en type: - target_id: daily_email target_type: node_type target_uuid: 8bde1f2f-eef9-4f2d-ae9c-96921f8193d7 revision_timestamp: - value: '2025-05-11T09:00:50+00:00' revision_uid: - target_type: user target_uuid: b8966985-d4b2-42a7-a319-2e94ccfbb849 revision_log: { } status: - value: true uid: - target_type: user target_uuid: b8966985-d4b2-42a7-a319-2e94ccfbb849 title: - value: | Debugging gitignore rules created: - value: '2022-12-28T00:00:00+00:00' changed: - value: '2025-05-11T09:00:50+00:00' promote: - value: false sticky: - value: false default_langcode: - value: true revision_translation_affected: - value: true path: - alias: /daily/2022/12/28/debugging-gitignore-rules langcode: en body: - value: |
Have you wondered why a file or directory is being ignored in your Git repository and isn't appearing when you run git status
?
Maybe you have multiple .gitignore
files and you don't know which is causing the issue, or you ignore everything and explicitly unignore the files that you want to add.
check-ignore
to the rescuegit check-ignore
accepts a list of paths and checks if each is ignored.
There's also a --verbose
option that will tell you which .gitignore
file is causing it to be ignored as well as the line number and the pattern - great information for debugging, and no more force adding files.
Have you wondered why a file or directory is being ignored in your Git repository and isn't appearing when you run git status
?
Maybe you have multiple .gitignore
files and you don't know which is causing the issue, or you ignore everything and explicitly unignore the files that you want to add.
check-ignore
to the rescuegit check-ignore
accepts a list of paths and checks if each is ignored.
There's also a --verbose
option that will tell you which .gitignore
file is causing it to be ignored as well as the line number and the pattern - great information for debugging, and no more force adding files.