GithubHelp home page GithubHelp logo

github-tutorial's Introduction

GitHub Tutorial for the Cadenasso Lab at UC Davis

Agenda

  1. What is GitHub? Git?
  2. Understanding the terminology
  3. Showoff Github.com
  4. Show how GitHub & Git & R Studio all work together
  5. Have the lab install Git and connect to R Studio (fingers crossed this works)
  6. All work on 2 examples together!

What is GitHub?
https://www.youtube.com/watch?v=w3jLJU7DT5E&t=1s

Terminology:

Term Definition
Repository (repo) project folder with files, documentation & revision history
Issue dicussion thread
Clone copy of a repo that's local
Fork copy of repo that stays on your GitHub account
Branch parallel version of a repo
Commit revision / ‘saving’ a file
Push sending commits to your repo
Pull request tells others about changes you've pushed/proposing
Merge the changes from one branch are applied to another
Fetch refresh / getting latest changes

First lab exercise

  1. Create your own repo on GitHub
  2. Clone it to RStudio
  3. Create an R file in RStudio
  4. Commit changes and push

Second lab exercise

  1. Fork and clone this repo
  2. Open RStudio and edit the R file
  3. Commit changes and push
  4. Create a pull request
  5. Merge to base branch

Helpful Links:
Download Git: https://git-scm.com/downloads

Connect to Git: https://happygitwithr.com/hello-git.html#hello-git

git config --global user.name 'Jane Doe'
git config --global user.email '[email protected]'
git config --global --list

Alternative using RStudio: https://happygitwithr.com/hello-git.html#hello-git

Connect Git to RStudio: https://happygitwithr.com/rstudio-git-github.html

PC: .../Local/Programs/Git/bin/git.exe
Mac: .../usr/local/bin/git.exe

Markdown Cheatsheet: https://guides.github.com/pdfs/markdown-cheatsheet-online.pdf
Github Desktop: https://desktop.github.com/
For a laugh: https://github.com/EugeneKay/git-jokes/blob/lulz/Jokes.txt

github-tutorial's People

Contributors

b0gumila avatar vkdearborn avatar

Stargazers

 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.