Finish Git, GitHub, PRG, Javascript




CS174

Chris Pollett

Mar 16, 2016

Outline

Branches, Merging Branches

Example resolving conflicts

Making patches

Git Tags

Issue Tracking

Let's Experiment

  1. Create a git repository containing your HW2 code.
  2. Make a clone of this repository.
  3. Change the title of the analytics/index.php file in the cloned repository.
  4. Commit this change.
  5. Make a patch of the difference between this change and the original repository.
  6. Apply the patch of this change back to the original repository
  7. Post the patch you made and a transcript of the applying it to the March 16 Thread.

GitHub

Getting started with GitHub

GitHub Work Flows

GitHub Work Details -- Getting a copy

  • In details what happening, is clicking fork gives you a copy in your user account space of that repository. For example, the original repository might have been:
    https://github.com/ORIGINAL_USERNAME/PROJECT.git
    your fork wil be
    https://github.com/YOUR_USERNAME/PROJECT.git
  • To get a copy on your laptop of your fork, you just clone that address:
    git clone https://github.com/YOUR_USERNAME/PROJECT.git
    
  • To make sure you can stay in sync with the original repository we need to add an upstream source for our clone:
    git remote add upstream https://github.com/ORIGINAL_USERNAME/PROJECT.git
    
  • GitHub Work Details -- Working locally, Synchronization, Pull Requests

    Our Website Design Paradigm So Far...

    POST REDIRECT GET