«   2026/09   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
Archives
Today
Total
«   2026/09   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
Archives
Today
Total
관리 메뉴

DBILITY

intellij .gitignore 동작이 이상할 때 본문

intellij

intellij .gitignore 동작이 이상할 때

DBILITY 2022. 1. 26. 13:17
반응형

project생성 후 .idea를 제외하기 위해 .gitignore에 추가해도 동작이 이상할 때가 있었다.

다음과 같이 조치하였다. 물론 구글링을 통해 알게 되었음.

git rm -r --cached .
git add .
git commit -m "fix: 추적대상에서 불필요한 파일 제거 및 .gitignore 반영"
git push origin [branch_name]

 

반응형
Comments