4
gitignore忽略Mac的DS_store文件
source link: https://iphyer.github.io/blog/2018/07/22/gitignore/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
gitignore忽略Mac的DS_store文件
其实很简单的,参考这个帖子How can I Remove .DS_Store files from a Git repository?,这里记录下。
清除已经记录的文件
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
以后不记录该文件
echo .DS_Store >> .gitignore
git add .gitignore
git commit -m '.DS_Store banished!'
Written on July 22, 2018
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK