GitHub

GitHub allows people from around the world to work together and store, edit, track, and build code in an open source collaborative environment. On GitHub you can share the source code of your project publically and others can "fork" (clone) your repository. Once they clone the code, they can make changes to it and push their changes back to you on your master branch. The easiest way to use GitHub is to download the GitHub for Desktop tool:

Download GitHub for Desktop View Video Tutorial

Image of GitHub for Desktop
GitHub Desktop

Need more help? Read the Beginner's Setup Guide for Git & Github on Mac OS X: click here


Classic GitHub

Before the GitHub Desktop Tool was created, many developers used the classic model of GitHub. This is another way to use GitHub and some developers prefer this over the Desktop tool.

GitHub Classic
Github.com

1. First start by creating your GitHub account here: Sign Up for GitHub

2. Now, create a repository: Create Repository

3. Step three is to create a folder on your Desktop where your local repository will live and then go into the folder from your terminal.

4. Now, if you are in the folder using the command line, follow the following steps to initiative your respository there.
Notice that the highlighted green text below is the location of your repository on GitHub.

echo "# TestRepo1" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/DattaUSC/TestRepo1.git
git push -u origin master

5. Now you can push your changes to GitHub using git push -u origin master