Working with Git
and GitHub.
Work better,
together.
Slide 2
Slide 2 text
My name is Matt Yoho.
I write code at GitHub.
@mattyoho
Slide 3
Slide 3 text
Git
Distributed version
control.
Slide 4
Slide 4 text
GitHub
Social coding. Open
source.
Slide 5
Slide 5 text
GitHub
Creative project
collaboration.
Slide 6
Slide 6 text
No content
Slide 7
Slide 7 text
?
?
?
Slide 8
Slide 8 text
So, what is version
control?
Slide 9
Slide 9 text
So, what is version
control?
And why do I care?
Slide 10
Slide 10 text
Let’s look at a daily
workflow.
Slide 11
Slide 11 text
1. Create some files.
2. Save some files.
3. Edit some files.
4. Save them again.
Slide 12
Slide 12 text
1. Create some files.
2. Save some files.
3. Edit some files.
4. Save them again.
Slide 13
Slide 13 text
1. Create some files.
2. Save some files.
3. Edit some files.
4. Save them again.
Slide 14
Slide 14 text
1. Create some files.
2. Save some files.
3. Edit some files.
4. Save them again.
Slide 15
Slide 15 text
1. Create some files.
2. Save some files.
3. Edit some files.
4. Save them again.
Slide 16
Slide 16 text
Where was
I again?!
Slide 17
Slide 17 text
Alternatively...
Slide 18
Slide 18 text
Experimentation
Slide 19
Slide 19 text
X
Experimentation
Slide 20
Slide 20 text
X
Experimentation
Slide 21
Slide 21 text
X
?
Experimentation
Slide 22
Slide 22 text
Repos and commits
Slide 23
Slide 23 text
Commits
Commits capture the
contents of a project’s files
at a point in time.
A repository contains all the
commits for a project, and
some other metadata.
Slide 24
Slide 24 text
Commits
Commits capture the
contents of a project’s files
at a point in time.
A repository contains all the
commits for a project, and
some other metadata.
A commit is like a savepoint.
Slide 25
Slide 25 text
Stages of a file
staged committed
changed
git add
git commit
edit
Slide 26
Slide 26 text
Creating a repo
Slide 27
Slide 27 text
$> mkdir ./my_project
$> cd my_project
$> git init .
$>
gitting started