1 / 12

Introduction to GitHub

Introduction to GitHub. Alex Bigazzi Dec. 4, 2013 ITS Lab. Functionality. Version control Code sharing Collaboration. Potential Benefits. Track revisions Collaborating on projects Exploring open-source code jQuery, rCharts , devtools , etc. Modifying others’ code Scripts

raya-walls
Download Presentation

Introduction to GitHub

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to GitHub Alex Bigazzi Dec. 4, 2013 ITS Lab GitHub Introduction

  2. Functionality Version control Code sharing Collaboration GitHub Introduction

  3. Potential Benefits • Track revisions • Collaborating on projects • Exploring open-source code • jQuery, rCharts, devtools, etc. • Modifying others’ code • Scripts • R packages • Install in R using rtools GitHub Introduction

  4. Architecture & Terminology Remote Repository (GitHub cloud) Remote Push Local Repository Clone/Pull/ Fetch Commit Local Index (stage snapshot) Add Add Add Add Working Folder GitHub Introduction

  5. Posting Content • Create GitHub account online • Free for open code • Working on a local machine • Install Git Bash (command line) • $ git clone… [or] $ git pull… • [move files to working directory] • $ git add… • $ git commit… • $ git push… GitHub Introduction

  6. Forking projects Main Branch r2 r3 r4 r5 r1 r6 Fork Merge r3 (Revisions) My Branch Test/add features in “My Branch” Then merge yourself, or send pull request GitHub Introduction

  7. Working online Examples: Posting Portland ACE Android code finding rCharts error fixing rCharts GitHub Introduction

  8. Integration with R • “devtools” library • Installing R packages • install_github(repo, username, branch,…) • Running R scripts • source_url("https://raw.github.com/username/repo...") • Copy “raw” link from GitHub GitHub Introduction

  9. Other Matters • Online edits saved as commits • Be sure to add descriptors to commit • New repositories: • “readme” file • Choose public use license • PSU rules about open-source code? GitHub Introduction

  10. Organizations • Home for a group’s code • Organization owns repositories • Free for Open Source • Dashboard • Repositories • Members’ GitHub accounts • Can fork to the Organization GitHub Introduction

  11. Conclusion GitHub is useful for code sharing and collaboration Would an ITS Lab “Organization” be useful? What are the PSU rules about this? GitHub Introduction

  12. Resources http://gitref.org http://rogerdudler.github.io/git-guide/ http://net.tutsplus.com/tutorials/other/getting-the-hang-of-github/ https://help.github.com/articles/set-up-git GitHub Introduction

More Related