git presentation pdf
DESCRIPTION
Git andTRANSCRIPT
![Page 1: Git presentation pdf](https://reader038.vdocuments.mx/reader038/viewer/2022100420/558e66461a28ab8c218b4614/html5/thumbnails/1.jpg)
GIT FOR EVERYONENabeel Ali Memon
1Thursday, July 28, 11
![Page 2: Git presentation pdf](https://reader038.vdocuments.mx/reader038/viewer/2022100420/558e66461a28ab8c218b4614/html5/thumbnails/2.jpg)
Conceptual Differences
If you’r not distributed, you’r not worth it
If you won’t let me work offline, you’r not worth it
If you give me hard time merging changes, you’r not worth it
If you’r dead slow, you’r not worth it
2Thursday, July 28, 11
![Page 3: Git presentation pdf](https://reader038.vdocuments.mx/reader038/viewer/2022100420/558e66461a28ab8c218b4614/html5/thumbnails/3.jpg)
Learning Git(Subversion re-education)
What is a repository?
What is a commit?
What are branches?
What is commit-history?
What about merges?
3Thursday, July 28, 11
![Page 4: Git presentation pdf](https://reader038.vdocuments.mx/reader038/viewer/2022100420/558e66461a28ab8c218b4614/html5/thumbnails/4.jpg)
A typical SVN repository
4Thursday, July 28, 11
![Page 5: Git presentation pdf](https://reader038.vdocuments.mx/reader038/viewer/2022100420/558e66461a28ab8c218b4614/html5/thumbnails/5.jpg)
A [distributed] Git repo
5Thursday, July 28, 11
![Page 6: Git presentation pdf](https://reader038.vdocuments.mx/reader038/viewer/2022100420/558e66461a28ab8c218b4614/html5/thumbnails/6.jpg)
A Commit
SVN
Commit: svn commit -m “My cool commit”
Git
Stage: git add <fileName(s)>
Commit: git commit -m “My cool commit”
Push: git push
6Thursday, July 28, 11
![Page 7: Git presentation pdf](https://reader038.vdocuments.mx/reader038/viewer/2022100420/558e66461a28ab8c218b4614/html5/thumbnails/7.jpg)
A Branch
SVN
svn copy <repo-to-branch> <branch-name>
Git
git branch <branch-name>
7Thursday, July 28, 11
![Page 8: Git presentation pdf](https://reader038.vdocuments.mx/reader038/viewer/2022100420/558e66461a28ab8c218b4614/html5/thumbnails/8.jpg)
Commit HistorySVN
One-way (revision number increments)
Unchangable
Very Slow
Git
Merges (based on hashcodes)
Changeable, Squashable, Splittable, Reshapable
Extremely Fast
8Thursday, July 28, 11
![Page 9: Git presentation pdf](https://reader038.vdocuments.mx/reader038/viewer/2022100420/558e66461a28ab8c218b4614/html5/thumbnails/9.jpg)
A Merge (conflict resolution)
SVN
Simple Stupid merge (based on your changes and my changes)
Git
Multi-Strategy, Intelligent merge (octopus, resolve, recursive, subtree, ours)
Rebase (and get rid of dumb merge-commit)
9Thursday, July 28, 11
![Page 10: Git presentation pdf](https://reader038.vdocuments.mx/reader038/viewer/2022100420/558e66461a28ab8c218b4614/html5/thumbnails/10.jpg)
Where to go
http://gitref.org/
http://progit.org/book/
http://code.google.com/p/gerrit/
10Thursday, July 28, 11