Your SlideShare is downloading. ×
0
Git in Eclipse
Git in Eclipse
Git in Eclipse
Git in Eclipse
Git in Eclipse
Git in Eclipse
Git in Eclipse
Git in Eclipse
Git in Eclipse
Git in Eclipse
Git in Eclipse
Git in Eclipse
Git in Eclipse
Git in Eclipse
Git in Eclipse
Git in Eclipse
Git in Eclipse
Git in Eclipse
Git in Eclipse
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Git in Eclipse

344

Published on

Published in: Technology, Sports
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
344
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
6
Comments
0
Likes
3
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Git in EclipseDariusz ŁukszaBlog: http://luksza.orgMail: dariusz@luksza.org
  • 2. Agenda● What Git is? ● History ● Git vs. CVS/SVN ● How Git works?● Git commands● What EGit 0.8.1 can do?● Demo Time! ● First: project, commit, branch, tag, fetch, push, merge ● Keep high code quality thanks to Git 2
  • 3. History of Gita2005 - Linus Torvalds starts Git2006 - Proof-of-concept, quite unusable2007 - Index reader, quickdiff2008 - Add history view, commit, push/fetch2009 - Eclipse decides on Git; moved to Eclipse.org3/2010 - Released 0.7.0 Diff/Merge Automatic IP Logs Preliminary merge algorithm implementation (not really usable for now on)6/2010 - Released 0.8.0 Usability Improvements Git Repositories View Tagging Slide taken from presentation: 3 Understanding and Using Git at Eclipse | © 2010 by C. Aniszczyk, S. Pearce, R. Rosenberg and M. Sohn
  • 4. Git vs. CVS/SVN● Distributed (but …) ● Centralized ● Ability to work off-line ● no ● Full local history ● no● Versions are described ● Numerically described using SHA-1 versions● Fast and lightweight ● Every branch is a full copy branches of repository● Checkout on repository ● Checkout on file/catalog level level● Complex tags ● Simple tags 4
  • 5. How Git works?Saves state not deltas. 5 Images taken from Pro Git book (http://progit.org)
  • 6. How Git works? Objects 6 Images taken from Pro Git book (http://progit.org)
  • 7. How Git works?Branches and tags v1.0 7 Image taken from Pro Git book (http://progit.org)
  • 8. How Git works?Merge (fast-forward) fast-forward merge 8 Images taken from Pro Git book (http://progit.org)
  • 9. How Git works?Merge (three-way merge) three-way merge 9 Images taken from Pro Git book (http://progit.org)
  • 10. How Git works? Rebase1. 2. 3. 10
  • 11. How Git works? Structure of .gitextensions global exclude filerecord branch changes object storage local branches default main branch remote tracking branches, divided by repository default remote repository default remote branchconfiguration for this repository tip of current branchcache for staging changes for next commit 11
  • 12. Git commands● git init / git clone ● git pull● git add ● git push● git status ● git stash● git commit ● git branch● git diff ● git tag● git fetch ● git checkout● git log ● git config● git merge ● git format-patch● git rebase ● git mv / git rm 12● git remote ● git reset
  • 13. Git commands● git init / git clone ● git pull● git add ● git push● git status ● git stash● git commit ● git branch● git diff ● git tag● git fetch ● git checkout● git log ● git config● git merge ● git format-patch● git rebase ● git mv / git rm 13● git remote ● git reset
  • 14. What EGit 0.8.1 can do?● git init / git clone ● git pull● git add ● git push● git status ● git stash● git commit ● git branch● git diff ● git tag● git fetch ● git checkout● git log ● git config● git merge ● git format-patch● git rebase ● git mv / git rm 14● git remote ● git reset Autorem grafik jest: Deleket (Jojo Mendoza)
  • 15. Demo Time! 15
  • 16. First demoCreate and share project locally. 16
  • 17. Second Demo Working with remote project.Well use gitosis as a Git server and CGit for on-line project presentation. 17
  • 18. Third demo Benefiting from distributed VCS.Using Git and Gerrit for keeping project in good shape. 18
  • 19. Q&A● Git: http://git-scm.com/● EGit: http://eclipse.org/egit/● JGit: http://eclipse.org/jgit/● EGit mailing list: http://dev.eclipse.org/mhonarc/lists/egit-dev/● JGit mailing list: http://dev.eclipse.org/mhonarc/lists/jgit-dev/● There is also an EGit forum on Eclipse forums: http://www.eclipse.org/forums/ 19

×