반응형
깃 레파지토리 항상 최상위에 존재한다.
해당 파일 내용을 변경해서 푸쉬하면 된다.
잘안되면
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
반응형
'[Git]' 카테고리의 다른 글
[Git] 오랜만에 써보는 깃 Command (0) | 2023.06.23 |
---|---|
[Git] rebase에 대해서 (0) | 2023.05.01 |
[Git] 소스트리 특정 파일 추적 중지 인덱스 달기 (0) | 2022.01.24 |
[Git] 소스트리 특정 파일 추적 중지 인덱스 달기 (0) | 2022.01.24 |
[GIT] 소스 트리 설정 및 설치 (간단 commit,push, pull 예제) (0) | 2021.12.13 |