GitNotes.11-6.md
본 문서는 Git Notes for Professionals (라이센스:CC-BY-SA) 를 한글로 번역한 문서입니다. 번역상 오류가 있을 수 있으므로 정확한 내용은 원본 문서를 참고하세요.

Section 11.6: .gitignore 설정에 의해 ignore 처리된 파일들의 목록 확인하기

[ alias ] ignored = ! git ls-files --others --ignored --exclude-standard --directory \ && git ls-files --others -i --exclude-standard

위 명령어 수행시 하나의 줄에 하나의 파일을 표시하게 되며, 디렉토리들만 표시하기 위해서는 grep 을 이용할 수 있다:

$ git ignored | grep '/$' .yardoc/ doc/

또한 항목들의 수를 세는 것도 가능하다:

~$ git ignored | wc -l 199811 # oops, my home directory is getting crowded

[출처] https://books.goalkicker.com/GitBook/ (CC BY-SA)

반응형

+ Recent posts