question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Global option in Preferences to ignore .DS_Store

See original GitHub issue

The feature request

Macs create invisible files named .DS_Store in every folder, and these files are automatically updated on an ongoing basis.

The problem: The .DS_Store files are rarely, if ever, useful to anyone. They primarily exist as clutter in every folder of every repo created by Mac users, unless they’re dealt with manually by creating another clutter file called .gitignore. I suspect there are not many cases where .DS_Store files need to be archived or continually updated on GitHub. From the looks of it, most people don’t want .DS_Store files cluttering their repos, yet no clear, straightforward solution exists to deal with them elegantly.

Proposed solution

Create a global option in the GitHub Desktop Preferences menu to ignore .DS_Store files. Ideally this would be turned on by default.

Additional context

Here’s an example of a repo in which I haven’t changed any files, but GitHub Desktop think I need to push changes to origin. The only changes here are the automatic updates that have been made to the invisible .DS_Store files.

Screen Shot 2022-11-18 at 11 47 26 AM

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
stevewardcommented, Dec 1, 2022

It looks like there may be an issue with the Ignore All functionality for dotfiles – you should see it on other files. I’ll investigate what’s causing that and open an issue, but you can also workaround that by directly editing the .gitignore from Repository > Repository Settings > Ignored Files.

0reactions
chadagreenecommented, Dec 1, 2022

Thanks @steveward, I’ll give that a shot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

gitignore all the .DS_Store files in every folder and subfolder
First, make a global .gitignore file somewhere, e.g. echo .DS_Store >> ~/.gitignore_global. Now tell git to use it for all repositories:
Read more >
How can I set Finder to ignore .DS_Store files?
Close the window, re-open it and go to Finder>View>Show View Options, check the way you want it in "Always open in," then check...
Read more >
gitignore .DS_Store - Linux Hint
$ git commit -m "Remove .DS_Store Files." You can also ignore them by adding a global configuration. Run the command: $ echo ...
Read more >
Remove DS_Store Files on macOS - Microsoft Support
Corrupted .DS_Store files can prevent OneDrive from syncing correctly. Deleting the corrupted files can help restore normal sync operation.
Read more >
How to remove .DS_Store files from git repositories - LinkedIn
Global configuration to exclude .DS_Store files in all repositories in future ... And that's it, now .DS_Store is completely removed and ignored ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found