코딩/github
github - .env 기록 지우기
jm_p_op
2024. 4. 23. 00:46
- gitignore추가
- 지역 저장소의 .env 지우기
- 전체 commit에 있는 .env 파일 삭제
git rm --cached .env
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch .env' --prune-empty --tag-name-filter cat -- --all