.gitignore를 제대로 설정해도 Changes 탭에 뜨는 경우가 가끔 있다.
캐시 처리를 해주면 해결된다. github desktop에서 손쉽게 캐시를 삭제할 수 있다.
⭐⚠ Changes가 다 날아갈 수 있으니 일단 Commit 한 번 해준다.
1. Repository > Open in Command Prompt
2. Command Prompt 창이 뜨면, 최상위 경로로 맞춰준다.
cd hello
3. 아래 명령어를 차례대로 입력한다.
git rm -r --cached
git add
git commit -m "gitignore cache reset"
728x90
'개발 툴' 카테고리의 다른 글
[github] gitignore 모음 (0) | 2024.01.03 |
---|---|
[VM Virtual Box] Windows에서 Virtual Box로 Ubuntu사용하기 (0) | 2023.07.07 |
[IntelliJ] IntelliJ IDEA 다운로드 및 설치하여 사용하기 (0) | 2023.07.04 |
[eclipse] Starting Tomcat v8.5 Sever at localhost' has encountered a problem 해결 (0) | 2023.01.05 |