I'm developing a Laravel project with 2 teammates. We need to use Git so we can, from time to time, download our teammates's work and run it.
Problem is: Some files differ (and they have to), for example, bootstrap.php (or start.php, I don't recall), which contains the hostname (is different for every computer). vendor/ differs too. Therefore, these changes should never be committed.
I imagine, however, that there is one good solution that will work for any Laravel project. We added vendor/ to .gitignore, but I think we messed up when we used "git add ." to then commit, adding the files to the staging area.
How do you guys that have been through this issue solved this problem?