Code Monkey home page Code Monkey logo

git-demo's Introduction

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

git-demo's People

Contributors

jmzaleski avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.