Skip to content

Commit 7872df8

Browse files
committed
Update .gitignore to prevent AI-generated markdown files
Block all .md files by default except: - Whitelisted documentation files (README, LICENSE, etc.) - Files within .docc documentation catalogs
1 parent 2ec0c1b commit 7872df8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ Thumbs.db
1313
!/.swiftformat
1414
!/.swiftlint.yml
1515

16-
# Documentation (opt-in for top-level .md files only)
17-
/*.md
16+
# Documentation (opt-in for whitelisted .md files and .docc catalogs only)
17+
# Blocks all .md files by default to prevent AI-generated content from being committed
18+
*.md
1819
!README.md
1920
!LICENSE.md
2021
!CHANGELOG.md
2122
!CONTRIBUTING.md
2223
!CODE_OF_CONDUCT.md
2324
!SECURITY.md
25+
!**/*.docc/**/*.md

0 commit comments

Comments
 (0)