Answer the question
In order to leave comments, you need to log in
How to push an entire framework project to Git?
There is a project that I'm going to start doing, but if you do git add ., then not all files will be added (many simply won't start, because many are by default in this framework in gitignore). How can I make it so that I can push the entire project, and pull it off from another laptop without the need to download separately some configs that got into gitignore? PHP framework: Laravel
Answer the question
In order to leave comments, you need to log in
While you wrote, you yourself answered "many are by default in this framework in gitignore". Now the question is what should be done about it? That's right, remove from gitignore! Well done!
Files that are generated by or belong to other projects should never be included in git. This increases the size of the repository, makes it difficult to update. In fact, from the very beginning you create a large dump, which from the very beginning will not be sorted out, and after months - even more so, for the sake of imaginary "convenience".
Only add files to the repository that you write/modify yourself.
And the framework, for example, is installed in each copy of the developer or on the server with the npm
or commands yarn
.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question