Setting up a Laravel project with github
Steps to set up a Laravel project with GitHub are:
First, go to GitHub and fork https://github.com/laravel/framework.git.
Then install your application as you always do.
composer create-project laravel/laravel your-project-name --prefer-dist.
Now rename git origin to something else.
git remote rename origin laravel
Then create your new project on GitHub and add it as your new origin :
git remote add origin https://github.com/you/yourproject.git
Add, commit and push it as given below.
git add -A
git commit -m "first commit"
git push origin master
That’s all needed for the creating project in git.
You will probably need the below commands for merging yours with Laravel’s.
1. To fetch changes.
git fetch laravel
2. To see the list of branches.
git branch -va
3.merge your’s with Laravels.
git merge laravel/master
Comments
0 comments
Please Sign in or Create an account to Post Comments