Giter VIP home page Giter VIP logo

spike-git-github's Introduction

spike-git-github

A simple spike activity for getting started with git and GitHub.

A Simple Git and GitHub Spike designed for K CS classes (Draft -- Under construction!!!)

Make sure everyone has a GitHub account. (Does one need an account just to download? Probably not. Probably just need one if planning to fork or create new repositories on GitHub.)

Download git and go through setup instructions. (See, for example, http://git-scm.com/book/en/Getting-Started-First-Time-Git-Setup.)

Have someone (preferably not a git/github guru) work on a projected computer.

What is the best way for people to collaborate together? Have everyone fork? Have 2 or 3 out of 5 fork and the others contribute to others' forks? (Do forking via GitHub web page.)

In a Terminal window (or your OS-equivalent):

  • Make a directory where you want to play with this spike under your personal web space (e.g., ~/Sites in my case); cd there.
  • git clone git://github.com/AlyceBrady/spike-git-github.git (or whatever) OR git clone git://github.com/AlyceBrady/spike-git-github.git spike (new name)
  • If you do a git status you should see nothing interesting.
  • View page & click Run Test.
  • Edit git_github_spike.html and just do STEP 1 (add your name to expected results).
  • View page & click Run Test.
  • Pretend you're thinking of committing it at this point.
  • Do a git status. The file is modified but not staged to be part of next commit.
    • Add it to the "staging area": git add git_github_spike.html
  • Horrors! Just realized that that is NOT the full modification!
  • Edit the file again and do STEP 2. View page & click Run Test.
  • Do another git status. STEP 1 version is staged, but STEP 2 version is not.
  • Do another git add to stage current version.
  • Do another git status.
  • If everything has been staged correctly, you are ready to commit: git commit -m "Add my name to class members list in spike" (Note: for more involved changes, just say git commit which will put you in an editor to write the commit message.)

What's the right process to contribute it back? Does it matter whether you own the fork or not? Push if a contributor and request a pull if not?

Follow-up activities:

  • Merge all the changes made by members of the class.
  • Move the JavaScript code to a new file, xxx.js. How does the new file get added?
  • Put an existing project into git on your own computer (can use git for local source code control without needing to push it to a remote server).

Additional (better) resources:

spike-git-github's People

Contributors

alycebrady 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.