version control with git & github
DESCRIPTION
Slides for the talk at Ladies Who Code (London)TRANSCRIPT
![Page 1: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/1.jpg)
Version Control with Git & GitHub
Belén Albeza@ladybenko
![Page 2: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/2.jpg)
1. Version control
![Page 3: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/3.jpg)
What is version control?
![Page 4: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/4.jpg)
What is version control?
It’s the management of changes
![Page 5: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/5.jpg)
version 1 version 2 version 3
![Page 6: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/6.jpg)
• 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](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/7.jpg)
• 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](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/8.jpg)
But there’s more...
![Page 9: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/9.jpg)
But there’s more...
Collaborative development
![Page 10: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/10.jpg)
We can share changes between developers
Pics from pixelblock.tumblr.com
![Page 11: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/11.jpg)
• 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](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/12.jpg)
II. Brief intro to Git
![Page 13: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/13.jpg)
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](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/14.jpg)
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](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/15.jpg)
Create a repo (1)
![Page 16: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/16.jpg)
Create a repo (2)
![Page 17: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/17.jpg)
Make some changes
![Page 18: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/18.jpg)
Commit your changes
![Page 19: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/19.jpg)
Make some more changes and commit
again
![Page 20: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/20.jpg)
Check history
![Page 21: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/21.jpg)
Check history
![Page 22: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/22.jpg)
Check history
![Page 23: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/23.jpg)
Check history
![Page 24: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/24.jpg)
Push your changes to GitHub
![Page 25: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/25.jpg)
Push your changes to GitHub
![Page 26: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/26.jpg)
Push your changes to GitHub
![Page 27: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/27.jpg)
![Page 28: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/28.jpg)
Flow
Init repo
Change code
Commit changes
Sync
![Page 29: Version control with Git & GitHub](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/29.jpg)
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](https://reader034.vdocument.in/reader034/viewer/2022042509/547b9da3b4795977098b4d99/html5/thumbnails/30.jpg)
Thanks!
?