Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Git ignoring folder App & Resources from my Laravel

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

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

What is the solution to this problem?

>Solution :

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading