dsstore is a hidden file of custom attributes. dsstore, the full name of "Desktop Services Store", is a hidden file created by Apple's Mac OS
The operating environment of this tutorial: macOS Big Sur system, MacBook Pro computer.
What file is dsstore?
dsstore is a hidden file of custom attributes.
.DS_Store (full name in English: Desktop Services Store) is a hidden file created by Apple's Mac OS It is the choice of background color. Equivalent to desktop.ini under Windows.
Delete .DS_Store
If there is no automatically generated .DS_Store file in your project, then just add .DS_Store directly to the .gitignore file. If the .DS_Store file already exists in your project, you need to delete it from the project first and then add it to .gitignore. As follows:
Delete all .DS_Store in the project. This will skip .DS_Store
1.find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch 将 .DS_Store 加入到 .gitignore 2.echo .DS_Store >> ~/.gitignore
Update Project
3.git add --all 4.git commit -m '.DS_Store banished!'
If you only need to delete the .DS_Store on disk, you can use the following command to delete the current directory and its subdirectories All .DS_Store files under:
1、find . -name '*.DS_Store' -type f -delete
Disable or enable automatic generation
Disable .DS_store generation:
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
Restore .DS_store generation:Restore .DS_store generation:
defaults delete com.apple.desktopservices DSDontWriteNetworkStores
The above is the detailed content of What file is dsstore?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Linux new version
SublimeText3 Linux latest version

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SublimeText3 Chinese version
Chinese version, very easy to use

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.
