The easiest way to use GitHub is to download the Desktop tool which allows you to visually push and pull changes to a repository without having to use your computer’s command line tools: Download GitHub for Desktop
Need more help? Read the Beginner’s Setup Guide for Git & Github on Mac OS X>: click here.
Many developers have been using the classic model of GitHub for years. This is another way to use GitHub.
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 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
You can also refer to: