DEV Community

Discussion on: Is it possible to put the

Collapse
 
sergey-muc profile image
Sergey Podgorny
/storage/*
/storage/!.gitignore
Enter fullscreen mode Exit fullscreen mode

and then run git rm -r --cached storage/framework/*

Thread Thread
 
rvxlab profile image
RVxLab

Not wrong. But also not what I said.

In case Mostafa didn’t know, it’s entire possible and legal to have multiple .gitignore files.

Thread Thread
 
sergey-muc profile image
Sergey Podgorny

Possible, but from my personal experience it is better to have a single .gitignore file to rule them all 🙂