[맥북] 깃허브 .DS_Store 삭제 + 해당파일없이 PUSH

<개념>/GitHub|2022. 5. 30. 12:57
반응형

1. .DS_Store 파일이 이미 존재하는경우

~ Documents/GItHub/레포이름

터미널에 해당주소로 이동한다음,

find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch -f

 

그다음에 변경된내용(DS_Store파일 삭제) PUSH

 

 

2. 앞으로 DS_Store 파일 생성안하게 설정

터미널 열고 다음입력

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE

 

 

 

 

 

 

 

 

참조

반응형

댓글()