-
repository에 존재하는 .DS_Store 파일 지우기
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
-
.gitignore 파일에 .DS_Store 추가하기 (혹은 직접 추가하기)
echo .DS_Store >> .gitignore
-
commit 하기
git add .gitignore
git commit -m 'remove: .DS_Store'
-
push 하기
git push -u origin main