[Git]
[GIT]gitignore 파일내용추가
CALLMESMITHMYNAME
2023. 6. 17. 00:05
반응형
깃 레파지토리 항상 최상위에 존재한다.
해당 파일 내용을 변경해서 푸쉬하면 된다.
잘안되면
git rm -r --cached .
git add .
git commit -m "Apply .gitignore"
이 명령어로 초기화하고 커밋하면된다.
아래는 깃 파일 샘플 양식이다. 참고하자gi
# : 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반응형