Creating repository at GitHub

STEP 1 : You need to have an account at to create a repository.Definitely you also need git to be installed on your local machine.

STEP 2 : It’s time to go on command line.

git config --global "Your Name Here"

Of course, you’ll need to replace “Your Name Here” with your own name in quotations. It can be your legal name, your online handle, anything. Git doesn’t care, it just needs to know to whom to credit commits and future projects.

Next, tell it your email and make sure it’s the same email you used when you signed up for a account just a moment ago. Do it like this:

git config --global ""

STEP 3 : Create your online repository.

Go back to and then on create repository page.Give your repository a short and memorable name.Now that you have created a repo , lets now add our local directory to repository.

STEP 4 : Initialize git.

On your local system in command prompt follow below steps.

mkdir gitproject

cd gitproject

git init

STEP 5 : Commit with git

Suppose we are inside gitproject directory where we last left off.Follow below steps.

touch readme.txt

You may then see the status with git status command.This will display output which says readme file as untracked.To make it noticed to got we need to add it.

Use git add readme.txt to add file.Hooray we added our first file, so its time to commit.

git commit -m “Add readme.txt” .Here m stands for any message attached with the commit.

STEP 6 : Connect your local repository to github repository.

We need to tell git that our repository exists somewhere online.

git remote add origin

To confirm type : git remote -v

STEP 7 : Push Data

Now we want to upload, or “push,” our changes up to the GitHub remote repo. That’s easy. Just type:

git push

GitHub for Newbies.

What is Github ?

GitHub is a web-based hosting service for software development projects that use the Git revision control system. (Source : Wikipedia)

What is Git ?

Git is version control software, which means it manages changes to a project without overwriting any part of that project.

Why use Git ?

Say you and a coworker are both updating pages on the same website. You make your changes, save them, and upload them back to the website. So far, so good. The problem comes when your coworker is working on the same page as you at the same time. One of you is about to have your work overwritten and erased.

A version control application like Git keeps that from happening. You and your coworker can each upload your revisions to the same page, and Git will save two copies. Later, you can merge your changes together without losing any work along the way. You can even revert to an earlier version at any time, because Git keeps a “snapshot” of every change ever made. Continue reading