25 July 2017

Recap GitHub tutorial 1

Have you accepted the invitation to github.com/forestgeo?

Goal

Interact with GitHub from RStudio

Requisites (Initial Set up)

  • GitHub account.
  • Git installed in your computer.
  • RStudio installed in your computer.

Catching up

If you get lost, don't worry!

Motivation

Why using git?

How you can use git

Here we will use RStudio.

Hands on

  • Touch base by giving hands up on this issue How many people installed git?

Open a repo

Delete a repo

Open another repo

Upload a text file.

Edit the file

Download the file

Clone a repo

Open a new repo on GitHub.

Write a readme file.

Then clone the repo into an RStudio project.

Change something, on the read me file; ten revert the changes.

Change something else; then commit the changes.

Explore history.

Push

Fork

Fork forestr/tutorials into your <your-account>/tutorials.

Clone forestr/tutorials into an RStudio project.

Change something locally, e.g. README. Then push.

Confirm the change in your fork.

Pull request

Request to pull your your fork into forestr/tutorials

Upload an existing projec

In your account, name a new repo as in your computer

Follow instructions from GitHub (require the shell)

end.