A .gitignore template for macOS users working with Word, Excel, and Affinity apps. Excludes system files, temporary backups, and autosaves.
Useful if you:
- Version non-code projects—notes, documentation, or artwork
- Want to avoid committing
.DS_Storeand other macOS noise
- macOS system files—
.DS_Store,._*,.AppleDouble,.Spotlight-V100, and more - Temporary and backup files—
*.tmp,*.bak,*~,*.swp, and more - Microsoft Office temp files—
~$*,*.wbk,*.xlk, and more - Affinity autosave files—
*.autosave,*.afdesign-preview, and more
- Copy the contents of
.gitignoreinto your project's.gitignore. - If you've already committed files you want ignored, run:
git rm -r --cached .
git add .
git commit -m "Apply .gitignore"To report an issue or suggest an addition, open an issue.
Pull requests are welcome. Keep changes focused—one concern per PR.
Released under the MIT License by Karl Horning.