From 8e8a45c496ea9a830359dab32f8bb47f0310a994 Mon Sep 17 00:00:00 2001 From: sno Date: Wed, 22 Oct 2025 18:40:14 +0900 Subject: [PATCH] [fix] Update .gitignore to properly ignore Linux core dumps (#6201) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Fixes the .gitignore pattern for Linux core dump files from `./core` to `/core`. ## Problem The pattern `./core` in .gitignore doesn't work as expected. Git interprets the `./` prefix literally, looking for a path named `./core` rather than matching `core` at the repository root. ## Solution Change to `/core` which is the correct gitignore syntax to ignore files/directories named `core` at the repository root only. ## Why This Matters - Linux systems can generate core dump files named `core` when programs crash - These files shouldn't be tracked in version control - The previous pattern wasn't actually ignoring these files ## Testing The new pattern will properly ignore `core` files at the root while not affecting subdirectories (e.g., `src/core/` would still be tracked). ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6201-fix-Update-gitignore-to-properly-ignore-Linux-core-dumps-2946d73d365081059e57d9919d03a501) by [Unito](https://www.unito.io) --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8f69ce164..cc195d8ed 100644 --- a/.gitignore +++ b/.gitignore @@ -78,7 +78,7 @@ templates_repo/ vite.config.mts.timestamp-*.mjs # Linux core dumps -./core +/core *storybook.log storybook-static