Home > Back-end >  Git ignoring folder App & Resources from my Laravel
Git ignoring folder App & Resources from my Laravel

Time:12-03

I'm having a problem in my Laravel app trying to pull it to Github.

All new files in the App and Resources folders are not detected on Github Desktop. When I do the command git status --ignored, all new files in the folder are in gitignored. But I'm not having problems when creating a new file in the Public folder.

But when I change old files, they are detected on Github Desktop. enter image description here

What is the solution to this problem?

CodePudding user response:

Ensure that your App and Resources folders are not part of your .gitignore file. You can check this by running cat .gitignore and viewing the output to see what files are ignored.

If they are ignored by some variation of a regex like App/** or Resources/** remove them from the .gitignore and then they should be available to stage.

  • Related