git remote add origin git@github.com:{your git username}/{your project}.git
Adds a remote origin for you to push and pull to and from your remote repository using the 'origin' command - see examples below

git pull origin
Pulls in all your remote branches locally

git checkout -b {new branch name}
Creates a new branch and immediately switches to working on that branch

git branch
Lists your local branches, showing which branch you are on with a *

git status
Shows you which files have been created/removed/modified and whether they are tracked or committed

git add .
Adds all modified/created files into Git's tracking ready for you to commit

git rm {filename}
Places the removed file into Git's tracking so that committing removes the file from your branch

git add -u
Does the same as 'git rm' but does it for all removed files without the need to provide each filename

git commit -m "{commit message}"
Commits all the changes git was tracking with the provided commit message

git push origin {branch name}
Pushes all your local branch changes to your remote repository

git checkout {branch name}
Moves you to working with the provided branch - Must have committed all the changes to your current branch, or abandoned your changes (see 'reset --hard' below)

git merge {branch name}
Merges the changes from the provided branch into the branch you are currently working on

git branch -d {branch name}
Deletes the provided branch (All changes need to be fully merged in HEAD)

git branch -D {branch name}
Deletes the provided branch even if he changes have not been merged

git reset --hard
Discards any changes you have made to the branch you are currently working on

git push origin :heads/{branch name}
Deletes the branch provided from your remote repository


A full git cheat sheet!