Upgrade to Pro — share decks privately, control downloads, hide ads and more …

This is GitHub in CS50

Avatar for CS50 CS50
March 11, 2017

This is GitHub in CS50

Avatar for CS50

CS50

March 11, 2017
Tweet

More Decks by CS50

Other Decks in Education

Transcript

  1. History • Homegrown tool • Other homegrown tool • …

    • GitHub • GitHub + homegrown tool
  2. History • Homegrown tool • Other homegrown tool • …

    • GitHub • GitHub + homegrown tool • GitHub + Travis
  3. Features • UI for code review • Permissions model ◦

    CS50 ◦ CS50x ◦ CS50 AP • Post-commit hooks • ...
  4. Implementation Details • 1 repo per student in course's organization

    ◦ Student has write privilege ◦ Teaching Fellow has read privilege ◦ Instructor has admin privilege • 1 branch per problem
  5. Branch for version control • git add --all • git

    commit --allow-empty --message • git push origin refs/heads/hello
  6. Tagged orphaned branch for code review • git checkout --orphan

    • git add --all • git commit --allow-empty --message 20170311T184500Z • git tag hello@20170311T184500Z • git push origin refs/tags/hello@20170311T184500Z