/SWT_Github

Class on Git and GitHub taught at USM Gulf Coast Research Lab's Summer Workshop Training Series (https://sites.google.com/view/gcrl-swt).

Primary LanguageR

Learning GitHub @ GCRL Summer Workshop Training Series 2018


What We'll Cover

We will cover the basics of GitHub which are most useful to researchers, simple methods for collaboration, and how to integrate Git with RStudio. Advanced and useful methods for collaboration can be found at links found at the bottom of this page.

Requirements Before Workshop

Skills:

Understanding of how to navigate to files on your computer.
Understanding of how to create folders on your computer.

Software and Accounts:

Install Git.
Register an account on GitHub.
Verify your e-mail for GitHub (via your e-mail service)

Chatroom for Workshop:

Click here to be in the live chatroom for the workshop. You can remain anonymous and ask questions/comments as the workshop goes on.

Lessons

Lesson 1 - Getting Started on GitHub (Create a Repository, Clone, Commit, Push)
Lesson 2 - RStudio Integration
Lesson 3 - Collaboration (Cloning, Pulling, and Restoring)

What is Git?

Git is version control software.

  • Version control software saves a history of changes, with one version of each file.
  • Every time you "commit" in git, you save a version of any files included in the commit.
  • Some of you familiar with Google Docs may have seen this in their Revision History feature.

What is GitHub?

GitHub is a version control service.

Why use Git?

Version Control

The #1 reason to use Git is because it saves a history of changes in your files.

Compare + Restore

Git lets you compare previous versions with your current. You can go back to see where bugs or changes occurred, and restore old code or writing, while keeping the newest revisions.

Share

Git allows for collaboration between users. Other users can "clone" your repository, make changes, and then suggest those changes to you. Or they can be included on the project and collaborate, without risk of writing over each other.

Not Limited to Code

Binary-files (Word documents, model results, sound, images) can be added to Git, although you won't be able to see the changes. Nonetheless, Git still shows when the files were changed, and allows you to pull up old versions of them.

Extras

Changing Font Size in MINGW64 Terminal

Interactive GitHub Demos
Interactive Branching Guide
Git Command List