Laravel 5.3에서 gitignore에 문제가 있습니다.Laravel storage/app/mydir/myfile.json에서 무시하지 않는 방법
다음 gitignore 파일이 있습니다. !
을 사용하여 myfile.json을 제외 시켰습니다. 내가 git status --ignored
을 실행하면
node_modules/
public/storage
storage/*.key
/.idea
Homestead.json
Homestead.yaml
.env
SQL/
*.sql
mynotes.md
!storage/app/mydir/myfile.json
나는이 출력을 얻을.
Ignored files:
(use "git add -f <file>..." to include in what will be committed)
../.env
../SQL/
../app/.DS_Store
../bootstrap/cache/config.php
../bootstrap/cache/services.php
../mynotes.md
../node_modules/
uploads/.DS_Store
../storage/app/.DS_Store
../storage/app/mydir/
...
...
그래서 myfile.json은 무시됩니다. 어떻게 파일을 추가/커밋 할 수 있도록 gitignore를 작성할 수 있습니까?
사실 그것은 내가 자식 체크인 무시 -v '에 의한 또 다른 gitignore을 발견 한 수준 아래이었다 myfile.json'. 그래서 저장소/app/dir에 다른 gitignore를 찾았습니다. 여기에 storage/app/mydir/myfile.json을 추가 할 수 있습니까? – shin
예, 그 규칙을 추가하는 적절한 장소가 될 것입니다. – VonC
감사합니다. BTW 내가 gitignore와'git status'를 수정할 때 myfile.json이 나타나지 않습니다. 먼저이 gitignore를 추가/커밋해야 효과가 있습니까? – shin