Skip to content

IvanTopolcic/git-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

CSC301 git-demo Sept 18

script of this demo:

we pretend we are working on a couple of features. Mathew makes f1 and alexei makes f2.

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

Let's 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. matz pushes f1 in source.c
  2. alexei pulls, changes source.c
  3. alexei pushes f2

Script for simple collab that goes wrong

on branch: ff (ff stands for fast forward)

  1. alexei, pushes f1 in include.h (NOTE include.h!!)
  2. matz, meanwhile writes f2
  3. matz tries to push f2.. can't because tip is out of date??
  4. matz pulls. merge is fine because changes are to different files
  5. matz pushes f1 and f2

Script for simple collab that goes even more wrong

on branch: conflict

  1. alexei pushes f1 (changing first line) in source.c
  2. meanwhile, matz writes f2, also changing first line of source.c
  3. matz can't push, pulls, conflict!
  4. matz resolves conflict and pushes resolved source.c with both f1 and f2 in source.c

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%