停止将 `.DS_Store` 文件提交到 Git

If you've ever worked with Git on macOS, chances are you’ve seen the mysterious .DS_Store file show up in your repositories. What is .DS_Store? .DS_Store is a hidden file that macOS...

.DS_Store是macOS上的隐藏文件,用于存储文件夹的视觉属性。在Git中不应跟踪此文件,以避免合并冲突。可以在.gitignore中添加.DS_Store以忽略,或进行全局配置。若文件已存在,可使用git rm --cached命令移除。

停止将 `.DS_Store` 文件提交到 Git
原文英文,约300词,阅读约需1分钟。发表于:
阅读原文