Skip to content

Commit 22add64

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 90221ab commit 22add64

File tree

1 file changed

+21
-36
lines changed

1 file changed

+21
-36
lines changed

.gitignore

Lines changed: 21 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,25 @@
1-
# Swift
2-
.build/
3-
.swiftpm/
4-
Package.resolved
5-
6-
# Environment files
7-
.env*
8-
9-
# Xcode
10-
*.xcodeproj
11-
*.xcworkspace
12-
*.xcuserdata
13-
DerivedData/
14-
15-
# IDEs
16-
.vscode/
17-
.idea/
18-
*.swp
19-
*.swo
201
*~
212

22-
# Generated by MacOS
23-
.DS_Store
24-
25-
# Generated by Windows
3+
Package.resolved
4+
DerivedData/
265
Thumbs.db
276

28-
# Generated by Linux
29-
*~
30-
31-
# Log files
32-
*.log
33-
34-
# AI
35-
.claude
36-
CLAUDE.MD
37-
38-
# Temporary files
39-
*.tmp
40-
*.temp
7+
# Dot files/directories (opt-in only)
8+
/.*
9+
!/.github
10+
!/.gitignore
11+
!/.spi.yml
12+
!/.swift-format
13+
!/.swiftformat
14+
!/.swiftlint.yml
15+
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
19+
!README.md
20+
!LICENSE.md
21+
!CHANGELOG.md
22+
!CONTRIBUTING.md
23+
!CODE_OF_CONDUCT.md
24+
!SECURITY.md
25+
!**/*.docc/**/*.md

0 commit comments

Comments
 (0)