os44 active rulesVerified 2026-09-30
macOS .gitignore Template
macOS operating system artifacts, metadata files, and Finder cache. Generated and merged deterministically with upstream GitHub repository patterns to keep your repository clean of package directories, temporary build artifacts, and local environment files.
Interactive Stack Generator
Preconfigured with macOS/
Search for templates
Quick add:
Selected1
macOS
Selected Templates (1)
macOS
os
macOS operating system artifacts, metadata files, and Finder cache
#macos#osx#darwin
.gitignore
44 rules•1 template
### macOS #### General.DS_Store.localized__MACOSX/.AppleDouble.LSOverrideIcon[
] # Resource forks._* # Files and directories that might appear in the root of a volume.DocumentRevisions-V100.fseventsd.Spotlight-V100.TemporaryItems.Trashes.VolumeIcon.icns.com.apple.timemachine.donotpresent.com.apple.timemachine.supported.PKInstallSandboxManager.PKInstallSandboxManager-SystemSoftware.hotfiles.btree.vol.file.disk_label*lost+found.HFS+ Private Directory Data[
] # Directories potentially created on remote AFP share.AppleDB.AppleDesktopNetwork Trash FolderTemporary Items.apdisk # Mac OS 6 to 9Desktop DBDesktop DFTheFindByContentFolderTheVolumeSettingsFolder.FBCIndex.FBCSemaphoreFile.FBCLockFolder # Quota system.quota.group.quota.user.quota.ops.group.quota.ops.user # TimeMachineBackups.backupdb.MobileBackups.MobileBackups.trashMobileBackups.trashtmbootpicker.efi 59 lines•UTF-8•LF
Deterministic
Raw macOS .gitignore
Crawlable upstream source templatemacos.gitignore•58 lines•UTF-8
# General.DS_Store.localized__MACOSX/.AppleDouble.LSOverrideIcon[
] # Resource forks._* # Files and directories that might appear in the root of a volume.DocumentRevisions-V100.fseventsd.Spotlight-V100.TemporaryItems.Trashes.VolumeIcon.icns.com.apple.timemachine.donotpresent.com.apple.timemachine.supported.PKInstallSandboxManager.PKInstallSandboxManager-SystemSoftware.hotfiles.btree.vol.file.disk_label*lost+found.HFS+ Private Directory Data[
] # Directories potentially created on remote AFP share.AppleDB.AppleDesktopNetwork Trash FolderTemporary Items.apdisk # Mac OS 6 to 9Desktop DBDesktop DFTheFindByContentFolderTheVolumeSettingsFolder.FBCIndex.FBCSemaphoreFile.FBCLockFolder # Quota system.quota.group.quota.user.quota.ops.group.quota.ops.user # TimeMachineBackups.backupdb.MobileBackups.MobileBackups.trashMobileBackups.trashtmbootpicker.efi Key Pattern Breakdown
Execution Caches & Runtime Logs
Diagnostic logs, runtime metadata, test coverage reports, and incremental compiler caches that cause noisy repository diffs.
.TemporaryItems
Operating System & Workspace Files
Editor-specific workspace configuration and OS filesystem metadata generated automatically by host operating systems.
.DS_Store
Source & Verification
Source: GitHub gitignore (main)
License: CC0-1.0
Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.