100% found this document useful (1 vote)
219 views22 pages

Learn To Get Git and Github

Git and Github are key open source collaboration tools. This session run by James Smith will teach you how to use them with data and code.
Copyright
© Attribution ShareAlike (BY-SA)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
219 views22 pages

Learn To Get Git and Github

Git and Github are key open source collaboration tools. This session run by James Smith will teach you how to use them with data and code.
Copyright
© Attribution ShareAlike (BY-SA)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

Learn to get Git and GitHub

James Smith [email protected] @floppy

Aim

Understand how to use Git and GitHub for


data publishing and collaboration.

Introductions

Who are you?

Where are you from?

What do you want to learn?

Outcomes
Explain the basic purpose and need for version control systems, such as Git.

Draw a diagram showing the meaning of basic version control terms, such as
commit, branch, fork, and merge.

Explain the differences between Git and GitHub, and explain what each is
used for.

Create a new repository on GitHub.

Commit a change to a file in a GitHub repository using the browser interface.

Fork a repository and submit a pull request.

Collaboration
What problems do you get when
editing documents together?

Shared files

Google Drive

iCloud

Version Control Concepts

Repository

Version Control Concepts

Commit

Version Control Concepts

Branch

Version Control Concepts

Master branch

Version Control Concepts

Branching

Version Control Concepts

Merging

Exercise

Core concepts are on sticky notes in front of you

Draw a diagram that explains how they relate

Choose someone to explain your diagram to the


other groups!

Version Control Concepts

http://nvie.com/git-model
by Vincent Driessen - @nvie

Git & GitHub

http://git-scm.com

Git & GitHub

http://github.com

Exercise

Go to http://github.com

Sign up for a free account

Create a repository for a collection of things

Explore repository features

Exercise

Open README.md

Make a change

Commit that change

Exercise

github.com/ukodi-training/hot-drinks

Fork

Change

Create a Pull Request

GitHub Flow

Outcomes
Explain the basic purpose and need for version control systems, such as Git.

Draw a diagram showing the meaning of basic version control terms, such as
commit, branch, fork, and merge.

Explain the differences between Git and GitHub, and explain what each is
used for.

Create a new repository on GitHub.

Commit a change to a file in a GitHub repository using the browser interface.

Fork a repository and submit a pull request.

Exercise
Open Source Collaboration with GitHub

Create issue asking for more information

Find a partner

Fork each others list repositories

Add something new to your fork

Create a pull request back to their repository

Thank You

James Smith [email protected] @floppy

You might also like