Running a git laravel project on my machine

0

I put a laravel project of my machine in git with the default git ignore.

Then to use on another pc I downloaded git from the command line and tried to install the composer:

composer install

But it does not install .env and other things but I'm not mistaken

Then I created a new project with the same name by the CLI, then copied the project that I downloaded from git and pasted over the new project and it worked.

I would like to know if there is a way with less gambiarra to make it work, ie without having to create a new project, download another from git and copy and paste into each other

    
asked by anonymous 02.11.2017 / 21:28

1 answer

0

In .gitignore you choose which file or folder, which will not be sent, when doing commit this file is not added and when pushing that file or folder is not sent, if you want .env to be sent remove from .gitignore, now this is not advised. The same situation applies to "/ vendor", there is no need for you to send all these files if you can perform a composer install after cloning the project.

    
03.11.2017 / 00:15