- Introduction to git
- Group policies and expectations
April 4, 2014
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
You maintain a complete history of your code and project.
It's the best way to share code, review code, and merge changes easily.
git repos on github:
You'll be using git to collaborate with your group on your project and share your project with us.
In a nutshell:
every member of the group has a local working copy:
pull
any new things other people have changedcommit
your changespush
your changes to share them with everyone elsemerge
any conflicts.You'll need to:
Do before Monday!
One person:
Everyone:
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.