.gitignore 파일에 들어가기 전에 파일이 이미 tracking되어 있었다면, ignore 파일에 해당 파일을 추가하였음에도 불구하고 계속 tracking되어 있을 수 있다. 이 문제를 해결한다
git rm .env --cached
git commit -m "Stopped tracking .env"
https://stackoverflow.com/questions/38983153/git-ignore-env-files-not-working
git ignore .env files not working
I have a laravel project. In the root directory are these 4 files: .env .env.example .env.local .env.staging I have a .gitignore file, and I'm listing these 4 files in the .gitignore, one after
stackoverflow.com
'IT > git' 카테고리의 다른 글
[git] Merge, Squash and Merge, Rebase and Merge (0) | 2024.08.14 |
---|---|
Git - remote: Invalid username or password (0) | 2023.07.06 |
GIT - Revert (0) | 2023.06.19 |
GIT - pull 에러 잡기 (0) | 2023.06.18 |
GIT - pull, push, clone이 명령어로 안될 때 (0) | 2023.06.13 |