.gitignore 형식
https://git-scm.com/docs/gitignore 참조
Git - gitignore Documentation
The optional configuration variable core.excludesFile indicates a path to a file containing patterns of file names to exclude, similar to $GIT_DIR/info/exclude. Patterns in the exclude file are used in addition to those in $GIT_DIR/info/exclude.
git-scm.com
# 이렇게 #를 사용해서 주석
# 모든 file.c
file.c
# 최상위 폴더의 file.c
/file.c
# 모든 .c 확장자 파일
*.c
# .c 확장자지만 무시하지 않을 파일
!not_ignore_this.c
# logs란 이름의 파일 또는 폴더와 그 내용들
logs
# logs란 이름의 폴더와 그 내용들
logs/
# logs 폴더 바로 안의 debug.log와 .c 파일들
logs/debug.log
logs/*.c
# logs 폴더 바로 안, 또는 그 안의 다른 폴더(들) 안의 debug.log
logs/**/debug.log
'Git' 카테고리의 다른 글
[Git] Git Revert 충돌 GUI에서 해결하는 방법 (0) | 2023.08.09 |
---|---|
[Git] Git에서 과거로 돌아가는 두 방식 - revert / reset (0) | 2023.08.09 |
[Git] Git 최초 설정 (0) | 2023.08.09 |
[Git] 제대로 파는 Git & GitHub 스터디 시작 (0) | 2023.08.09 |
[GIT] 자주쓰는 깃 명령어 모음 (0) | 2023.07.25 |