E
E
Eugene2018-07-04 18:07:53
git
Eugene, 2018-07-04 18:07:53

What to do with .gitignore file in team development?

Hello. First time trying to create a website in a team using git and laravel framework. By default it has a .gitignore file with the following content:

/node_modules
/public/hot
/public/storage
/storage/*.key
/vendor
/.idea
/.vscode
/.vagrant
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
.env

But when another developer clones my repository and tries to look at my branch, he encounters an error due to the absence of these files in his project. Tell me what I'm doing wrong? Thanks in advance for your replies.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2018-08-19
@Eugene70

composer install

B
Biocoder, 2018-07-05
@Biocoder

Git doesn't see empty directories, just create a .gitignore file in /public/hot and /public/storage folders with the following content:

*
!.gitignore

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question