Version control and collaboration with Git

Julin Maloof
Lecture 02

What is Git?

  • Tracks changes in projects and documents
  • Can restore to an earlier state
  • Can collaborate with others
  • Can maintain different versions

What is Git?

  • An essential tool for software development
    • Should be used whether or not your are collaborating
  • Enables transparent development and sharing
  • Facilitates Documentation, Reproducibility, Openness

Git Intro Videos

Git: Key concepts

  • Repository
    • A project that is tracked by Git
  • To start a new repository
    • git init
  • To add files to your repository
    • git add
  • To save changes to your repository
    • git commit
  • If you are going to collaborate you will need a
    • remote repository
  • If you want to use a remote repository you need to
    • fork or clone it
  • To download changes from the remote repository
    • git pull
  • To upload changes to the remote repository
    • git push
  • (Illustrate on Board)

Git: Example

Show BIS180L_web example

Git in Atom: Example

Show git in Atom

(Git in Rstudio coming later…)

Order of events today

  1. Unix Lab
  2. Git Lab