Answer the question
In order to leave comments, you need to log in
How to upload laravel to a clean github repository?
Hello!
How to organize the development of a site on laravel with github?
If I understand correctly, then you first need to upload pure laravel to the new repository on github?
But how to do it, I tried it like this:
1. I created a repository on github.
2. Cloned it to a computer.
3. I wanted to install laravel via composer, but composer gives out that such a folder does not exist. As it turned out, if there is a .git folder in the folder, then such a problem occurs.
Then I decided to do this:
1. Created a new folder on the computer (without .git).
2. Installed laravel in it via composer.
3. Created a new repository on github.
4. On the computer in the folder where laravel is installed, did git init
5. Did a git push to the remote github repository (created in step 3).
But somehow I did not like this decision, it is somehow crooked.
How to do it right anyway?
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
1. Clone Laravel from the official repository to your machine
2. Create your new project on github
3. Upload the contents of laravel from your machine
Update your project when necessary:
git init
git add .
git commit -m "up"
git push -u origin master
You can keep the project not in the Git repository, but in its subfolder:
~/my_project/
.git/
my_project/
ваш_проект
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question