카테고리 없음

[git] .gitignore 특정 폴더에서 안먹을 때

우주유령 2022. 7. 19. 17:48
728x90
반응형

/src/main/resources/templates/vue 하위의 폴더를 아무리 gitignore해도 먹지 않는 문제가 발생했다.

 

이럴 경우 캐시를 삭제하고 다시 gitignore를 수정하면 적용된다.

 

캐시삭제

git rm --cached ./src/main/resources/templates/vue/my.html

커밋

git add .
git commit -m "remove cache"

이제 girignore를 수정하면 정상작동한다.

 

 

 

참고

https://stackoverflow.com/questions/6030530/git-ignore-not-working-in-a-directory

728x90
반응형