일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- evaluation
- Paper
- git
- docker
- numpy
- LLM
- Python
- Flask
- PostgreSQL
- pytorch
- AI
- Package
- Mac
- DB
- Converting
- enV
- CUDA
- format
- judge
- Laravel
- KAKAO
- Linux
- Windows
- TORCH
- Container
- file
- pandas
- Database
- GitLab
- list
Archives
- Today
- Total
Daily Develope
[Git] .gitignore 작성 본문
예외항목 지정 예시
*.log # 확장자가 log인 파일 예외
!result.log # log 확장자가 예외처리 되었더라도 result.log 파일은 commit
dirA/**/* # dirA 폴더 내부 모든 폴더 및 파일 예외
적용시 주의사항
: 이미 push된 프로젝트에서는 .gitignore 관련파일을 캐쉬에서 삭제 후 commit
- 전체목록 갱신
git rm -r --cached .
git commit -a -m "set .gitignore"
git push -u origin master
- 특정파일만 예외처리 (예_ temp.log 파일 제외)
git rm --cached temp.log
echo temp.log >> .gitignore
# git status 확인 시 temp.log 파일이 제외(deleted)된 것을 볼 수 있다.
git commit -m "update .gitignore"
'Git' 카테고리의 다른 글
[Git] add 응용/명령어 정리 (0) | 2022.06.29 |
---|---|
[Git] 오류 정리 (0) | 2022.01.07 |
[Git] 기본 명령어 (init / Add / commit) (0) | 2022.01.07 |
[GitLab] YAML 파일 작성 예시 (Maven, JUnit 수행) (0) | 2022.01.07 |
[Git] Branch (조회 / 생성 / 삭제 / 변경 / 합병) (0) | 2022.01.07 |
Comments