[Git/GitHub] .DS_Store 지우기

@eunjios·2023년 10월 3일
0

How to

  1. repository에 존재하는 .DS_Store 파일 지우기

    find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
  2. .gitignore 파일에 .DS_Store 추가하기 (혹은 직접 추가하기)

    echo .DS_Store >> .gitignore
  3. commit 하기

    git add .gitignore
    git commit -m 'remove: .DS_Store'
  4. push 하기

    git push -u origin main

References

profile
growth

0개의 댓글