Está en la página 1de 22

Learn to get Git and GitHub

James Smith james.smith@theodi.org @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 james.smith@theodi.org @floppy

También podría gustarte