github basics for open data collaboration with james smith

22
James Smith · [email protected] · @floppy Git for Open Data Collaboration

Upload: open-data-institute

Post on 04-Jan-2016

9 views

Category:

Documents


0 download

DESCRIPTION

Heard of GitHub, but not sure what it is? Never heard of GitHub but think it sounds cool? Either way, this session is for you!

TRANSCRIPT

James Smith · [email protected] · @floppy

Git for Open Data Collaboration

Understand how to use Git and GitHub for data publishing and collaboration.

Aim

Introductions

• Who are you?• Where are you from?• What do you want to learn?

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.

Outcomes

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

Core concepts are on sticky notes in front of youDraw a diagram that explains how they relateChoose someone to explain your diagram to the other groups!

Exercise

Version Control Concepts

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

Git & GitHub

http://git-scm.com

Git & GitHub

http://github.com

Go to http://github.comSign up for a free accountCreate a repository for a collection of ‘things’Explore repository features

Exercise

Open README.mdMake a changeCommit that change

Exercise

Find a partnerFork their repository Add something to their listCreate a Pull RequestMerge

Exercise

GitHub Flow

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.

Outcomes

Open Source Collaboration with GitHubCreate issue asking for more informationFind a partnerFork each others’ list repositoriesAdd something new to your forkCreate a pull request back to their repository

Exercise

Thank You

James Smith · [email protected] · @floppy