Skip to content
Kenny Yu edited this page Oct 23, 2013 · 17 revisions

HCS Bootcamp: Git

By Kenny Yu

Prerequisites

In order to start this bootcamp, you must:

  • Setup your environment, using directions from here. In particular, you must have a UNIX environment (e.g. Mac OS X, Ubuntu, CS50 Appliance, NOT Windows), and you must have git installed
  • Create a github account, and fill out this survey
  • Setup your ssh keys: https://help.github.com/articles/generating-ssh-keys

Introduction

In this bootcamp, we'll cover:

  • What is source control, what is git, and why do we use git
  • Basic git commands
  • Using git with github

Here are the associated slides: Slides

Agenda

  1. What is git
  2. Exercise: Github forking
  3. Git data model
  4. Basic git workflow
  5. Exercise: Scavenger Hunt, Solutions
  6. Exercise: Committing and Pushing
  7. Exercise: Resolving Merge Conflicts
  8. Exercise: Reverting a commit
  9. Exercise: Making a Pull Request
  10. Git best practices