Skip to content

[Chore/#170] .env를 git 추적에서 제외 - #171

Open
xeoxxn wants to merge 1 commit into
mainfrom
chore/#170-ignore-env
Open

xeoxxn wants to merge 1 commit into
mainfrom
chore/#170-ignore-env

Conversation

@xeoxxn

@xeoxxn xeoxxn commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

#️⃣연관된 이슈

🎯 해결하려는 문제가 무엇인가요?

로컬 환경변수 파일(.env)이 git 추적 대상이라, git add . 한 번으로 DB 비밀번호·JWT 키 같은 값이 커밋될 수 있습니다.

❓ 왜 해결해야 하나요?

비밀값이 저장소 이력에 한 번 들어가면 지워도 남습니다. 저장소에는 .env.example만 두고 실제 값은 각자 로컬에만 둡니다.

⭐ 어떻게 해결했나요?

  • .gitignore에 .env, .env.local을 추가했습니다

🧩 이 PR의 한계 & 트레이드오프

없습니다.

⛓️ 기존 기능에 미치는 영향

없습니다. 지금 저장소에 커밋된 env 파일은 .env.example뿐이고, 이 파일은 그대로 추적됩니다.

🔀 Edge Case & 실패 시나리오

없습니다.

📋 검토한 대안과 선택 이유

없습니다.

💬 리뷰 포인트

@xeoxxn xeoxxn self-assigned this Oct 27, 2026
@coderabbitai

coderabbitai Bot commented Oct 27, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

로컬 환경변수 파일 git 추적 제외

2 participants