I'm currently in a team developing a LARAVEL project and all of us are using PHPSTORM, so we decide to use GitHub to make things easier. so when I tried to push my project to GitHub then I remarked that not all files are included and that because of an existing .gitignore file in my LARAVEL project which is created by LARAVEL installer .. I searched for that and I fund the same case as I have: What to include in gitignore for a Laravel and PHPStorm project? but I didn't understand what we should ignore and why. anyone can explain this in detail please I'm really a beginner.
Description by git-scm :
A gitignore file specifies intentionally untracked files that Git should ignore. Files already tracked by Git are not affected; see the NOTES below for details.
useful links explain Laravel gitignore.