git
DESCRIPTION
Brett Smith's Spring 2011 presentation on Git, the popular open source version control system.TRANSCRIPT
![Page 1: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/1.jpg)
{Git
From noob to pro
![Page 2: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/2.jpg)
Version Control Fast Distributed
What is Git?
![Page 3: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/3.jpg)
“Git made me a more productive coder because it showed me how much progress I had made” – Thomas “Synk” Kelley
“I use Git because the commands are really easy to use. I use Git because if I want to set up a Git server on the Internet it does not require any extra processes on my server, all I need is an SSH connection” – Chris “Panda” Nord
Why Git?
![Page 4: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/4.jpg)
Modified – I modified a file Staged – Git has taken a snapshot of my
modification Commited – Git has permanently
recorded my modifications from the stage
The three file stages in Git
![Page 5: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/5.jpg)
The three file stages in Git
![Page 6: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/6.jpg)
git init git add files git commit –m ‘my commit message’
A new Git repository
![Page 7: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/7.jpg)
..What just happened?
![Page 8: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/8.jpg)
..What just happened?
![Page 9: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/9.jpg)
git clone location git clone myserver.com:/path/to/repo/.git git clone
git://github.com/username/project.git git pull git push
An existing repository
![Page 10: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/10.jpg)
git diff git revert git checkout git log git blame git tag
Useful commands
![Page 11: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/11.jpg)
git branch new_branch git checkout new_branch
Branching
![Page 12: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/12.jpg)
Branching
![Page 13: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/13.jpg)
Merging
![Page 14: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/14.jpg)
Merging
![Page 15: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/15.jpg)
Implementation detail
![Page 16: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/16.jpg)
Implementation detail
![Page 17: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/17.jpg)
Implementation detail
![Page 18: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/18.jpg)
Implementation detail
![Page 19: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/19.jpg)
Implementation detail
![Page 20: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/20.jpg)
Implementation detail
![Page 21: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/21.jpg)
Implementation detail
![Page 22: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/22.jpg)
Interactive staging Stashing Bisect
Other notables!
![Page 23: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/23.jpg)
Questions?
![Page 24: Git](https://reader033.vdocument.in/reader033/viewer/2022060110/555c2361d8b42a09438b4acd/html5/thumbnails/24.jpg)
Images taken from progit.org and marklodato.github.com/visual-git-guide
Credits