---
title: "MACOS .GITIGNORE"
category: SNIPPETS
date: 2026-11-04
version: "1.0"
format: "TXT"
size: "904 B"
license: "CC0-1.0"
sha256: 840f2930209daaf1d3358c3b934a35c6d5b2dcfe15c56d9b7b469e4448b7e800
source: "https://github.com/github/gitignore/blob/main/Global/macOS.gitignore"
download: "https://original.wales/files/snippets/macos.gitignore"
tags: ["GITIGNORE","GIT","MACOS","OFFICIAL"]
summary: "GitHub’s official macOS .gitignore template."
canonical: "https://original.wales/files/gitignore-macos/"
---

# MACOS .GITIGNORE

GitHub’s official macOS .gitignore template.

## TEXT

# General
.DS_Store
.localized
__MACOSX/
.AppleDouble
.LSOverride
Icon[
]

# 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
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# Mac OS 6 to 9
Desktop DB
Desktop DF
TheFindByContentFolder
TheVolumeSettingsFolder
.FBCIndex
.FBCSemaphoreFile
.FBCLockFolder

# Quota system
.quota.group
.quota.user
.quota.ops.group
.quota.ops.user

# TimeMachine
Backups.backupdb
.MobileBackups
.MobileBackups.trash
MobileBackups.trash
tmbootpicker.efi

## SOURCE

https://github.com/github/gitignore/blob/main/Global/macOS.gitignore
