Skip to content
tgashby edited this page Jan 15, 2012 · 1 revision

Go here to set up Git on each new computer you plan to access the repository from:

Initial Git setup

To get the repository if you don't already have it:

  1. git clone git@github.com:tgashby/476-Project.git That will create a folder for you called 476-Project

OR

  1. git init in the folder you want
  2. git pull git@github.com:tgashby/476-Project.git That will just get the contents of the repository (and not make a folder).

To get all new changes to the repository

  1. git pull origin master

If that doesn't work:

  1. git remote add origin git@github.com:tgashby/476-Project.git You'll only need to do this once.
  2. git pull origin master

Committing changes to the repository

  1. git add myfile1 myfile ... Just fill in each file you want to add to the commit.
  2. git commit Then write a useful message. (Please)
  3. git push origin master

OR

  1. git commit -a This will commit every file that has changed.
  2. git push origin master

If step git push origin master doesn't work:

  1. git remote add origin git@github.com:tgashby/476-Project.git You'll only need to do this once.
  2. git push origin master

Things can get even fancier with branches which is arguably what git was made for, but that's a whole 'nother beast and I'm not gonna get into it.