Skip to content

Instantly share code, notes, and snippets.

@Swiss-Mac-User
Created March 14, 2023 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Swiss-Mac-User/a89fcde63498387fd33c99b02cdfebd9 to your computer and use it in GitHub Desktop.
Save Swiss-Mac-User/a89fcde63498387fd33c99b02cdfebd9 to your computer and use it in GitHub Desktop.
macOS .gitignore to exclude unwanted files and folders
# General
.DS_Store
.AppleDouble
.LSOverride
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
# Icon must end with two \r
Icon^M^M
# Thumbnails
._*
# Third-party Application files and folder
.nova
.vscode
node_modules
# XCode user files
build/*
*~.nib
*.swp
*.mode1
*.mode1v3
*.mode2v3
*.perspective
*.perspectivev3
*.pbxuser
*.xcworkspace
xcuserdata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment