Emacs용 .gitignore

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

확장 및 사용자 지정이 가능한 텍스트 편집기

Emacs용 전체 .gitignore

# LFGitignore로 생성 - https://lfgitignore.com
# 생성일: 2026-10-13 15:50:27 UTC
# 기술: Emacs

### Emacs ###
# Emacs 백업 파일
*~
# Emacs 자동 저장 파일
\#*\#
# Emacs 데스크톱 저장
/.emacs.desktop
# Emacs 데스크톱 잠금
/.emacs.desktop.lock
*.elc
# Emacs 자동 저장 목록
auto-save-list
# Emacs 원격 접근
tramp
# Emacs 잠금 파일
.\#*
# Emacs org-mode ID
.org-id-locations
# Emacs org-mode 아카이브
*_archive
# Emacs flymake 임시 파일
*_flymake.*
# Emacs 셸 기록
/eshell/history
# Emacs 셸 마지막 디렉터리
/eshell/lastdir
# Emacs 패키지 아카이브
/elpa/
*.rel
# Emacs 자동 생성 파일
/auto/
# Emacs Cask 의존성
.cask/
# 배포 디렉터리
dist/
# Emacs flycheck 파일
flycheck_*.el
/server/
# Emacs projectile 프로젝트
.projectile
# Emacs 디렉터리 로컬 변수
.dir-locals.el
# Emacs 네트워크 보안
/network-security.data
*.~undo-tree~

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

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

일반

패턴 제외 대상
*~ Emacs 백업 파일
\#*\# Emacs 자동 저장 파일
/.emacs.desktop Emacs 데스크톱 저장
/.emacs.desktop.lock Emacs 데스크톱 잠금
*.elc 일반
auto-save-list Emacs 자동 저장 목록
tramp Emacs 원격 접근
.\#* Emacs 잠금 파일

Org-mode

패턴 제외 대상
.org-id-locations Emacs org-mode ID
*_archive Emacs org-mode 아카이브
*_flymake.* Emacs flymake 임시 파일
/eshell/history Emacs 셸 기록
/eshell/lastdir Emacs 셸 마지막 디렉터리
/elpa/ Emacs 패키지 아카이브
*.rel reftex 파일

AUCTeX 자동 생성 폴더

패턴 제외 대상
/auto/ Emacs 자동 생성 파일
.cask/ Emacs Cask 의존성
dist/ 배포 디렉터리

Flycheck

패턴 제외 대상
flycheck_*.el Emacs flycheck 파일
/server/ 서버 인증 디렉터리
.projectile Emacs projectile 프로젝트
.dir-locals.el Emacs 디렉터리 로컬 변수
/network-security.data Emacs 네트워크 보안
*.~undo-tree~ undo-tree

이 Emacs용 .gitignore 사용 방법

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

다른 편집기용 .gitignore 템플릿

모든 편집기 템플릿 보기