Globally gitignore the .DS_Store file
If you are using macOS, your system appends the .DS_Store file in your directories. It’s not a big issue, but often you need to exclude these files explicitly in your .gitignore file, to prevent any unnecessary files in your commit.
You may want to ignore this file globally, so next time you don’t need to add it to your project’s ignore list.
Follow us on Twitter
Do you want to support and help us? A Twitter following or a sharing means a lot to us. Thank you!