Error/SpringSecurity

application.properties .gitignore 작동하지 않을 때

브리오 2024. 8. 30. 21:41

/src/main/resources/application.properties

 

gitignore 을 사용하고 싶으면 기존에 버전관리 했던 내용을 삭제해줘야 한다.

git rm --cached D:\YJ\pnu\heron-CI-CD/src/main/resources/application.properties

 

 

추가+++++++++++++++++)

그러니까 결국 ignore안되는거는 git 캐시가 남아있어서 안되는거였다

git에 있는 캐시 파일을 전부 지우고 add 해줘야 한다

git rm -r --cached .

git add .