Skip to content

A simple .gitignore template for macOS users working with Word, Excel, Affinity, and Markdown.

License

Notifications You must be signed in to change notification settings

Karl-Horning/macos-gitignore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

macOS .gitignore


MIT License macOS compatible GitHub Template Made with macOS Unofficial Template


πŸ“– Table of Contents


πŸ€“ Overview

A simple .gitignore template optimised for macOS users working primarily with Word, Excel, and Affinity apps. It excludes system files, temporary backups, and autosaves, while keeping your main project files (such as .docx, .xlsx, .afphoto) tracked in Git.


🧾 Use Case

This template is ideal if you:

  • Create non-code projects using Markdown, documents, or images.
  • Use Git to version notes, documentation, or artwork.
  • Want to avoid cluttering commits with .DS_Store and temporary files.

πŸ“„ Contents of .gitignore

This template excludes:

  • macOS system files
    .DS_Store, ._*, .AppleDouble, .Spotlight-V100, and others.

  • Temporary and backup files
    *.tmp, *.bak, *~, *.swp, etc.

  • Microsoft Office temporary files
    ~$*, *.wbk, *.xlk, etc.

  • Affinity autosave and preview files
    *.autosave, *.afdesign-preview, and similar.


βœ… Files You Can Still Track

This .gitignore does not exclude the following, so these will remain tracked:

  • .docx, .xlsx
  • .afphoto, .afdesign, .afpub
  • .md, .jpg, .png, .pdf, and other common document/image formats

πŸ“¦ Installation

  1. Copy the contents of macos.gitignore into your project's .gitignore file.
  2. If you've already committed files you want ignored, run:
git rm -r --cached .
git add .
git commit -m "Apply .gitignore"

🀝 Contributing

Pull requests and suggestions are welcome, especially if you use other macOS-native apps with known temporary file formats.


πŸ“„ Licence

MIT Β© 2025 Karl Horning


πŸ‘€ Author

Made with ❀️ by Karl Horning

About

A simple .gitignore template for macOS users working with Word, Excel, Affinity, and Markdown.

Topics

Resources

License

Stars

Watchers

Forks