Skip to content

csc301-fall-2017/git-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

CSC301 git-demo Sept 18

script of this demo:

we pretend we are working on a couple of features. Tokyo makes f1 and Toronto makes f2.

We do it a couple of ways.. including a conflict.

We pretend it's a little C program.

include.h, source.c, README.md is all there is.

Script for simple collab

on branch: take-turns

  1. Tokyo "implements" f1 in include.h, pushes
  2. Toronto pulls, "implements" f2 in source.c
  3. Toronto pushes f2

Script for simple collab that goes wrong

on branch: ff (ff stands for fast forward)

  1. Tokyo "implements" f1 in include.h, pushes
  2. Toronto "implements" f2 in source.c, commits
  3. Toronto tries to push.. fails because behind
  4. Toronto fetches, merges
  5. Now Toronto can push

Script for simple collab that goes even more wrong

on branch: conflict

  1. Tokyo "implements" f1 by adding second line to source.c
  2. Tokyo pushes
  3. Toronto "implements" f2 in source.c, commits
  4. Toronto tries to push.. fails because behind (again)
  5. Toronto fetches, merges.. conflict
  6. Toronto now can push

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages