$ sudo aptitude update
$ sudo aptitude install git
$ mkdir project && cd project
$ git init # Create local repository
# Add a remote repository called 'origin'
$ git remote add origin git@github.com:john/project.git
# Clone a remote repository to a new local one
$ git clone git@github.com:john/project.git project
# Remote repo 'origin' is automatically created,
# pointing to this URL
$ git status
$ git add -A # Add all the workspace to the index
$ git commit -m "Here are some commits, fellows"
$ git push origin master # Push 'master' branch to 'origin'
$ git pull origin master # Fetch and merge 'origin'
$ git log # Check what has been done
Image credit : Vincent Driessen & Oliver Steele