GitHub

깃허브 ignore 적용이 안될 때, 캐쉬 삭제

HYuk 2022. 1. 31. 11:23
728x90

.gitignore로 파일들을 ignore 시켜주고 싶은데

 

.gitignore를 메모장으로 수정해도 적용되지 않을 때에는

 

깃 캐시를 싹 밀어주고 다시 올리면된다.

 

최상위 폴더에서 깃배쉬 (gitbash)를 연다.

-> 마우스 오른쪽버튼 gitbashhere

(이를 위해 아래 파일 설치 필요)

Git for Windows

 

Git for Windows

Git for Windows focuses on offering a lightweight, native set of tools that bring the full feature set of the Git SCM to Windows while providing appropriate user interfaces for experienced Git users and novices alike. Git BASH Git for Windows provides a BA

gitforwindows.org

 

git rm -r --cached .

 

그 후 위 명령어를 입력 해주면 깃에 올라가잇는 캐쉬들이 전부 클리어된다.

 

이 후 다시 이그노어와 파일들을 올리면 해결된다!!

 

 

728x90