기록

rm -r .git override r--r--r-- 본문

TIL*

rm -r .git override r--r--r--

mnmhbbb 2022. 5. 18. 15:24

npx create-react-app --template typescript로 기본 프로젝트를 생성하면
초기세팅된 상태가 자동으로 커밋되었다. 
그래서 rm -r .git 명령어를 실행했는데

override r--r--r-- mhbaek/staff for .git/objects/03/2464fb6ec40a523899b8c8a593242f3108a420? 
rm: .git/objects/03: Permission denied

이러한 문제가 해결되지 못하고 있었다.

결국 스택오버플로우의 도움으로 해결할 수 있었다.
(https://stackoverflow.com/questions/55320699/trying-to-remove-my-git-folder-and-rm-r-git-force-is-not-working)

chmod -R +w .git
rm -r .git

 

 

'TIL*' 카테고리의 다른 글

redux-persist non-serializable value error  (0) 2022.05.20
npm ci vs npm install  (0) 2022.05.20
Firebase GitHub CICD  (0) 2022.05.18
React.js에서 Intersection Observer 적용하기  (0) 2022.05.06
Cannot use import statement outside a module  (0) 2022.05.02
Comments