Is .DS_Store an important hidden files?, its giving me problems with pulling from github. It is suggesting I remove it and I did. Hope this won't bite me in the butt later on.
No data is lost by deleting the corrupted files as Mac Finder only creates . DS_Store files to store viewing options, such as the positions of icons, size of the Finder window, and window backgrounds. To delete a corrupted . DS_Store file, you will need to use Terminal.
Open Finder > Applications > Utilities > Terminal. E.g., To delete all DS_Store files on the desktop, enter cd desktop and press Enter. To delete all DS_Store files on other folders, type cd followed by a space, drag the folder icon to Terminal, and press Enter. Select OK.
In the Apple macOS operating system, . DS_Store is a file that stores custom attributes of its containing folder, such as folder view options, icon positions, and other visual information. The name is an abbreviation of Desktop Services Store, reflecting its purpose.
It's safest to place it into your . gitignore file and be done with it. If it's already in your repository, then you can use git rm --cached . DS_Store to remove it from your system after it's been entered into .
Just add it to .gitignore
, the file has no relevance on other computers.
The .DS_Store
file is used to store Finder
information about that folder, so it's has no use in a git
repo.
.DS_Store is a Mac-specific hidden file. It's also not something that you generally want to add to source control, as its contents may change without you necessarily interacting with it.
It's safest to place it into your .gitignore
file and be done with it. If it's already in your repository, then you can use git rm --cached .DS_Store
to remove it from your system after it's been entered into .gitignore
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With