Skip to content

Commit 8e8a45c

Browse files
authored
[fix] Update .gitignore to properly ignore Linux core dumps (#6201)
## 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)
1 parent 187f59e commit 8e8a45c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ templates_repo/
7878
vite.config.mts.timestamp-*.mjs
7979

8080
# Linux core dumps
81-
./core
81+
/core
8282

8383
*storybook.log
8484
storybook-static

0 commit comments

Comments
 (0)