version control with git & github

30
Version Control with Git & GitHub Belén Albeza @ladybenko

Upload: benko

Post on 29-Nov-2014

648 views

Category:

Technology


5 download

DESCRIPTION

Slides for the talk at Ladies Who Code (London)

TRANSCRIPT

Page 1: Version control with Git & GitHub

Version Control with Git & GitHub

Belén Albeza@ladybenko

Page 2: Version control with Git & GitHub

1. Version control

Page 3: Version control with Git & GitHub

What is version control?

Page 4: Version control with Git & GitHub

What is version control?

It’s the management of changes

Page 5: Version control with Git & GitHub

version 1 version 2 version 3

Page 6: Version control with Git & GitHub

• A version control system stores the increments between versions

• So we can check the evolution of our document set

• And we can roll back to any previous state

Page 7: Version control with Git & GitHub

• We can code without fear of screwing up and not being able to go back to a stable estate

• We can track the changes and locate where we introduced that new nasty bug

• We can share different versions of our code

Why is this useful?

Page 8: Version control with Git & GitHub

But there’s more...

Page 9: Version control with Git & GitHub

But there’s more...

Collaborative development

Page 10: Version control with Git & GitHub

We can share changes between developers

Pics from pixelblock.tumblr.com

Page 11: Version control with Git & GitHub

• Several people can work in the same code, remotely

• You can work on your code from multiple machines

• Version control makes integrating changes easy

This is great!

Page 12: Version control with Git & GitHub

II. Brief intro to Git

Page 13: Version control with Git & GitHub

Git

“Git is an extremely fast, efficient, distributed version control system ideal for the collaborative development of software”

from GitHub.com

Page 14: Version control with Git & GitHub

GitHub

GitHub provides free public Git repositories, so your code will be online. It

also provides a graphic Git client!

www.github.com

Page 15: Version control with Git & GitHub

Create a repo (1)

Page 16: Version control with Git & GitHub

Create a repo (2)

Page 17: Version control with Git & GitHub

Make some changes

Page 18: Version control with Git & GitHub

Commit your changes

Page 19: Version control with Git & GitHub

Make some more changes and commit

again

Page 20: Version control with Git & GitHub

Check history

Page 21: Version control with Git & GitHub

Check history

Page 22: Version control with Git & GitHub

Check history

Page 23: Version control with Git & GitHub

Check history

Page 24: Version control with Git & GitHub

Push your changes to GitHub

Page 25: Version control with Git & GitHub

Push your changes to GitHub

Page 26: Version control with Git & GitHub

Push your changes to GitHub

Page 27: Version control with Git & GitHub
Page 28: Version control with Git & GitHub

Flow

Init repo

Change code

Commit changes

Sync

Page 29: Version control with Git & GitHub

To continue from here...

• Setup instructions: http://help.github.com/articles/set-up-git

• Learn how to solve conflicts

• Get to know about Git philosophy on branches

• Get a shell!

Page 30: Version control with Git & GitHub

Thanks!

?