CodeIgniter용 .gitignore

저장소에 바로 복사할 수 있는 CodeIgniter 제외 규칙 15개.

PHP 웹 프레임워크

CodeIgniter용 전체 .gitignore

# LFGitignore로 생성 - https://lfgitignore.com
# 생성일: 2026-10-13 15:46:26 UTC
# 기술: CodeIgniter

### CodeIgniter ###
*/config/development
*/logs/log-*.php
!*/logs/index.html
*/cache/*
!system/cache/*
!*/cache/index.html
!*/cache/.htaccess
user_guide_src/build/*
user_guide_src/cilexer/build/*
user_guide_src/cilexer/dist/*
user_guide_src/cilexer/pycilexer.egg-info/*
application/logs/*
!application/logs/index.html
!application/logs/.htaccess
/vendor/

이 CodeIgniter 규칙이 실제로 제외하는 항목

아래에서 각 패턴과 .gitignore에 포함하는 이유를 확인하세요.

일반

패턴 제외 대상
*/config/development 일반
*/logs/log-*.php 일반
!*/logs/index.html 일반
*/cache/* 일반
!system/cache/* 일반
!*/cache/index.html 일반
!*/cache/.htaccess 일반
user_guide_src/build/* 일반
user_guide_src/cilexer/build/* 일반
user_guide_src/cilexer/dist/* 일반
user_guide_src/cilexer/pycilexer.egg-info/* 일반
application/logs/* codeigniter 3
!application/logs/index.html 일반
!application/logs/.htaccess 일반
/vendor/ 일반

이 CodeIgniter용 .gitignore 사용 방법

  1. 위의 CodeIgniter 규칙을 복사하거나 파일을 바로 다운로드하세요.
  2. Git 저장소 루트에 .gitignore라는 파일을 만들고 규칙을 붙여 넣으세요.
  3. 이미 추적 중인 파일이 있다면 git rm -r --cached . 명령을 실행한 다음 다시 커밋하세요. Git은 추적하지 않는 파일에만 제외 규칙을 적용합니다.
  4. 팀원 모두가 같은 규칙을 사용하도록 .gitignore를 커밋하세요.

다른 프레임워크용 .gitignore 템플릿

모든 프레임워크 템플릿 보기