Skip to main content

Tool

Remove .DS_Store tracking in all Git repositories

·234 words·2 mins
Every time a new folder is created and files are added in macOS, a .DS_Store file is generated within that folder. This results in numerous .DS_Store files scattered across macOS, and it’s quite annoying to add **/.DS_Store to every .gitignore file each time a new Git repository is created. Therefore, I found a method to prevent .DS_Store files from being tracked in all Git repositories.