개발 잘 하고 싶다 => 알고 쓰자/ERROR(삽질) 모음

[Git] .ignore

장 상 현 2021. 6. 13.

 

처음이라 그럴 수 있다는 변명을 하며... 

 

git이 한번 꼬여버려 걷잡을 수 없는 삽질을 하다

 

결국 .ignore 의 중요성을 정말 너무 매우 몹시 엄청나게 크게 강하게 절절하게 눈물겹게 느끼게 되었다

 

아래의 문법 역시 절대 잊지 않겠구나...

 

# : comments

# no .a files
*.a

# but do track lib.a, even though you're ignoring .a files above
!lib.a

# only ignore the TODO file in the current directory, not subdir/TODO
/TODO

# ignore all files in the build/ directory
build/

# ignore doc/notes.txt, but not doc/server/arch.txt
doc/*.txt

# ignore all .pdf files in the doc/ directory
doc/**/*.pdf

댓글