April 4, 2014


  • Introduction to git
  • Group policies and expectations

What is git? github?

git is a version control system.

"Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later." –git docs

A git repository (a.k.a repo) is basically a folder/directory that is under version control.

github is a public place for hosting git repositories

Why use git?

You maintain a complete history of your code and project.

It's the best way to share code, review code, and merge changes easily.

Some examples

For ST599

You'll be using git to collaborate with your group on your project and share your project with us.

In a nutshell:

  • you'll set up a group repository for each project hosted on github
  • every member of the group has a local working copy:

    • you pull any new things other people have changed
    • you make changes, add files etc.
    • you commit your changes
    • you push your changes to share them with everyone else
    • you might need to merge any conflicts.


To get started

On Monday

pull, make changes, commit, push

If you open your project in Rstudio, there is a Git tab that lets you interact with the repo.

Remember if you haven't pushed a change, your group can't get it. And you can't push a change you haven't committed.