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
Open in Full Generator/
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
### 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 44 rules1 template59 linesUTF-8LF
Deterministic
Raw macOS .gitignore
Crawlable upstream source templatemacos.gitignore58 linesUTF-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
Cache & Temporary Files
Ignores compiler caches, test runner coverage data, and transient temporary scratch files.
.TemporaryItems
System & Editor Files
Filters out operating system metadata and workstation-specific editor configuration folders.
.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.