Create a new repository with the + icon in github (usually it's top right somewhere). You can either push up some existing source code, or start a new project from scratch. Do you have any git experience? Git can be used without github, although many (including myself) prefer github's interface over others.
How to version control my Laravel 4.2 project with GitHub
Hello!
I'm new at Laravel development. I've started a project using Homestead 2.0, and now I want to know how to do the version control of my project using GitHub.
I want to keep my project up-to-date with laravel 4.2 updates. What is the best way to do it? (I'm also new at GitHub)
As others have said, yes you use composer. Just make sure your vendor folder is in your .gitignore!
Here's an example of one of my .gitignore's:
/bootstrap/compiled.php
composer.phar
npm-debug.log
.env.*.php
.env.php
.DS_Store
.idea
Thumbs.db
node_modules
vendor/*
public/vendor/*
workbench/*
Now, you may not have need to ignore all these things initially, but in general you want to always keep the folder that your package manager (or managers if you're using bower for frontend assets!) uses outside of version control.
Edit: Also something that might be confusing is the composer.lock file. You should keep this under version control. When you run composer update, the composer.lock file is generated and it's purpose is to be able to install that exact same set of dependencies again if you were to say copy the project to a live server. The idea is on the live server you would just run composer install, and it will look at that lock file and install the exact same versions so that you can be sure it works the same as your development system. If you were to do a composer update on a live system, there might be a case where it upgrades/installs a dependency which breaks some feature of your project... hopefully that makes sense!
Please or to participate in this conversation.