Git에 .gitignore 말고도 무시 파일이 두 개 더 있다
Two Git ignore files nobody told me about
대부분 .gitignore만 알고 있지만, Git은 사실 세 곳에서 무시 패턴을 읽는다. 커밋되지 않는 .git/info/exclude는 이 클론에만 적용되어 개인 메모나 에이전트 플랜 같은 스크래치 파일을 안전하게 숨길 수 있고, core.excludesFile로 설정하는 전역 무시 파일은 모든 저장소에 적용된다. 작성자는 Claude의 제안으로 이 사실을 알게 되었고, 이제 지저분한 작업 트리 없이도 개인 파일을 관리한다.
The per-repo one, .git/info/exclude, is the one I'm giddy about. It lives inside .git, so it can't be committed even by accident, and nobody else ever sees it.