Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Storage folder not getting commited into github in laravel project

In my laravel project after recently doing php artisan storage:link i comitted my project in github then i noticed the storage folder in my public folder is not comitted. How can i fix this.

enter image description here


2 Answers

Please check your .gitignore file. I guess the storage folder is excluded. Remove it from your .gitignore file and add, commit and push again and everything should get pushed to github.

@edit remove the public/storage from your .gitignore file. But keep in mind, like mentioned in the comments, that you might want to keep some files locally.

like image 85
Aless55 Avatar answered Oct 31 '25 06:10

Aless55


move to $> cd storage/app/public then git add * -f then you can push, hope it helps somehow.

like image 42
hugo_HDSF Avatar answered Oct 31 '25 08:10

hugo_HDSF



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!