codestates / codestates/luca

[Error Handling] .gitignore 에러

Open
#45 0 comments 0 reactions 1 assignee Claimed by @QuatoHub View on GitHub
Bug
Dominant language
JavaScript
Stars
3
Forks
2
PR merge metrics
No merged PRs in 30d

Description

# 어떤 에러인가요?
- .env 파일이 .gitignore에 정상적으로 적용되지 않음
# 에러 메시지
```
별도의 에러 메시지 없음
```
# 에러 핸들링 방법
- 핸들링 방법에 대해서 간단하게 기록해보세요.
```
git 캐시가 문제가 되는거라서 캐시를 삭제해주고 다시 추가해주면 정상 작동한다.
캐시 삭제 전 commit을 해둬야 코드가 날라가는 것을 방지할 수 있다.

$ git rm -r --cached
$ git add .
$ git commit -m ".gitignore cached removed"
```
# 에러 핸들링을 위해 참고한 레퍼런스 링크
[.gitignore가 동작 안할 때 상황별로 해결하기](https://coding-groot.tistory.com/59)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.