Friday, June 5, 2009

Getting Started with Git and GitHub

In my last post I explained how to install Git on you PC.  Now we are going to look at GitHub. 

GitHub is the easiest way to participate in that collaboration: fork projects, send pull requests, monitor development, all with ease.  To find out more or to signup go to github.com

Get Started
  1. First thing first – Make sure that you have Git installed on your PC. 
  2. Setup your SSH-Key and Identify yourself to Git – go to http://is.gd/P9tF and follow the steps on how to setup the SSH-Key and Identify yourself .
  3. Sign Up for a GitHub account: go to https://github.com/signup/free (We’re doing the FREE thing on this example) Enter:
    1. Username
    2. Email
    3. Password
    4. SSH Public Key – which is in your “C:\Documents and Settings\YourNameHere\.ssh\id_rsa.pub” file.  All you need to do then is open, copy and paste it into the textarea
  4. You then can “Create Repository” if you would like.  All you need to enter is:
    1. Project Name
    2. Description
    3. Homepage URL
    4. Select Who has access to the repository
Now working with Github

New Repo

  • Open Git
  • mkdir test_app
  • cd test_app
  • git init
  • touch README
  • git add README
  • git commit –m ‘first commit’
  • get remote add origin git@github.com:username/test_app.git
  • git push origin master

Existing Git Repo

For Much More on this topic go to http://is.gd/Pc7j

0 comments: