Home >Common Problem >What file is dsstore?
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!