Skip to content

Commit fa15869

Browse files
committed
fix(gitignore): allow docs/build directory without requiring -f flag
Fix gitignore pattern to properly allow docs/build/ documentation directory while still ignoring build artifacts in other locations. Changes: - Move !docs/build exception closer to **/build pattern - Remove outdated comment about requiring git add -f - Simplify gitignore configuration Benefits: - docs/build/ files can be added normally without -f - Build artifacts still properly ignored elsewhere - Clearer gitignore structure
1 parent 0f94ae9 commit fa15869

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
._.DS_Store
33
Thumbs.db
44
.claude/
5-
!/docs/build
65
/.env
76
/.env.local
87
/.pnpmfile.cjs
@@ -20,6 +19,7 @@ Thumbs.db
2019
**/coverage
2120
**/.type-coverage
2221
**/build
22+
!docs/build
2323
**/dist
2424
**/node_modules
2525
.build-checkpoints
@@ -39,9 +39,6 @@ Thumbs.db
3939
.*.sw?
4040

4141
# Build artifacts: All build/, dist/, coverage/, and html/ directories are gitignored.
42-
# Exceptions:
43-
# - !/docs/build allows tracking docs/build/ (documentation directory, not build artifacts)
44-
# - Note: New files in docs/build/ require `git add -f` due to **/build pattern
4542

4643
# Yarn PnP files (tests may create these)
4744
/.yarn

0 commit comments

Comments
 (0)