The document discusses a presentation on Git given by Colin Harrington at SpringOne 2GX 2010. It introduces Git as a free and open source distributed version control system. It highlights features such as branching and merging. It also contrasts Git with centralized version control systems like SVN and discusses basic Git commands and fundamentals like SHA hashes and the tree structure. The presentation includes demonstrations of using Git and interacting with remote repositories. It also discusses using Git with SVN repositories and contributing to projects like Grails.
TeamStation AI System Report LATAM IT Salaries 2024
Getting to know Git at SpringOne 2GX 2010
1. Chicago, October 19 - 22, 2010
Getting to know Git
Colin Harrington – Object Partners
2. SpringOne 2GX 2010. All rights reserved. Do not distribute without permission.
whoami
Colin Harrington
Senior Consultant
@ColinHarrington
colin.harrington@gmail.com
colin.harrington@objectpartners.com
3. What is Git?
Git is a free & open source, distributed version
control system designed to handle everything from
small to very large projects with speed and efficiency.
Every Git clone is a full-fledged repository with
complete history and full revision tracking capabilities,
not dependent on network access or a central server.
Branching and merging are fast and easy to do.
– http://git-scm.com/
SpringOne 2GX 2010. All rights reserved. Do not distribute without permission.
8. Decentralized / Distributed VCS
SpringOne 2GX 2010. All rights reserved. Do not distribute without permission.
9. Git – SVN Crash Course
http://git-scm.com/course/svn.html
SpringOne 2GX 2010. All rights reserved. Do not distribute without permission.
10. Mind << git basics
start brand new repository:
git init
clone an existing repository:
git clone <giturl>
SpringOne 2GX 2010. All rights reserved. Do not distribute without permission.
11. SpringOne 2GX 2010. All rights reserved. Do not distribute without permission.
Demo
12. Mind << git basics
git init
git add .
git commit
git init
git add .
git commit
SpringOne 2GX 2010. All rights reserved. Do not distribute without permission.
13. Mind << git fundamentals
`
SpringOne 2GX 2010. All rights reserved. Do not distribute without permission.
14. Mind << git fundamentals
SpringOne 2GX 2010. All rights reserved. Do not distribute without permission.
15. Mind << git fundamentals
SHA hashes
Authorship preservation
Tree Structure!
SpringOne 2GX 2010. All rights reserved. Do not distribute without permission.
16. Mind << git fundamentals
http://book.git-scm.com/1_the_git_object_model.html
SpringOne 2GX 2010. All rights reserved. Do not distribute without permission.
23. Mind << working with remotes
Index
Local
Repository
Remote
Repository
Push
Pull
Files on drive
SpringOne 2GX 2010. All rights reserved. Do not distribute without permission.
24. SpringOne 2GX 2010. All rights reserved. Do not distribute without permission.
Demo
25. Mind << git-svn
clone an entire SVN repository!
git svn clone s <url>
git svn clone s r 1234 <url>
… without -s, etc.
SpringOne 2GX 2010. All rights reserved. Do not distribute without permission.
26. Mind << git-svn
git svn rebase
→ rebases the current branch on the remote-tracked
svn branch (trunk or branches)
git svn fetch
→ fetches changes from svn
Checkout a remote branch
Keep the original branches clean!!
Stash, rebase, dcommit, and do it again!
SpringOne 2GX 2010. All rights reserved. Do not distribute without permission.
27. Give Back to Grails
http://grails.org/contribute
http://grails.org/Creating+Patches+From+Git
http://grails.org/GitHub+Forking+and+Pull+Requests
http://jira.codehaus.org/browse/GRAILS
28. SpringOne 2GX 2010. All rights reserved. Do not distribute without permission.
Demo
30. SpringOne 2GX 2010. All rights reserved. Do not distribute without permission.
Q&A
31. SpringOne 2GX 2010. All rights reserved. Do not distribute without permission.
Thank you!
32. Credits
Git logo :: by azizash :: http://azizash.deviantart.com/art/GIT-Logo-95183398
Grails logo :: http://grails.org/Brand
Perl logo :: Criado por O'Reilly :: http://commons.wikimedia.org/wiki/File:Perl.jpg
VLC logo :: illustration (and iteration) by Richard C. G. Øiestad. GNU GPL by Video LAN
Rails logo :: KSEltar :: http://commons.wikimedia.org/wiki/File:Ruby_on_Rails_logo.svg
jQuery logo :: http://commons.wikimedia.org/wiki/File:Logo_jquery_215x53.gif
Linux logo :: gg3po (kde-look.org source) :: http://commons.wikimedia.org/wiki/File:NewTux.svg
Eclipse logo :: http://www.eclipse.org/artwork/
Android logo :: Google and Android's developpers :: http://commons.wikimedia.org/wiki/File:Android_robot.svg
SpringOne 2GX 2010. All rights reserved. Do not distribute without permission.