Git - Fast Version Control System       Presentation By: Aseem Jain
Agenda (apart from fun)•   Visualize “GIT Vs SVN”•   What is Delta Storage ?•   GIT Work Flow•   GIT Architecture•   Branc...
Visualize SVN Vs GITKEY POINTS :SVN is vulnerable to corruptionSVN repository should have better backup plansSVN cannot wo...
What is Delta Storage ?Instead of saving or replacing entire file, only differences are saved and tracked.
Svn is vulnerable                       Git portability – (Svn corruption problem)to corruption evenwhen the OS ormedia is...
Git Architecture•   Index     – Stores information about current working directory and        changes made to it•   Object...
Git Workflow• Fetch or clone (create a copy of the remote  repository) (compare to cvs check out)• Modify the files in the...
Git Local repository                     add                 commit                                                  Objec...
How Git object Database worksEntire version history, branch data and content are hashed, compressed and stored    locally ...
Light weight(delta)   Branching(context switching)No massive copyingcan be switchedcan belocal/remotecan be sharedcommit s...
Instead of stickingto one central                      Multiple remote repositoryrepository, githelps to deal withmultiple...
The workflow                                Dictator modeldemonstrated heresolves the problemof multipleprojects workingon...
Getting git remote    Getting Git Remote Repositoryrepository which isfree. It has simplelogin, configuration than you get...
With SVN you arecompelled to           Git Merge and Rebasemerge and sometime getsfrustrated to looseor rewrite whatyou we...
Blog link for details of git commands :               http://premaseem.wordpress.com/2011/11/16/git-commans/      152Git C...
Blog link for details of git commands :                         http://premaseem.wordpress.com/2011/11/16/git-commans/    ...
Some GIT Disadvantages• Definite learning curve, especially for those used to  centralized systems   - Can sometimes seem ...
How to get help with git• Read That Fabulous Manual  http://www.kernel.org/pub/software/scm/git/docs/user-  manual.html• B...
Team Question ??
To download this presentation visit :   www.premaseem.com/git
Upcoming SlideShare
Loading in...5
×

Git Presentation

7,413

Published on

Presentation deals
Visualizing SVN vs Git
Git architecture
Delta storage
Branching and Rebase
Git commands

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

No Downloads
Views
Total Views
7,413
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
202
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Transcript of "Git Presentation"

  1. 1. Git - Fast Version Control System Presentation By: Aseem Jain
  2. 2. Agenda (apart from fun)• Visualize “GIT Vs SVN”• What is Delta Storage ?• GIT Work Flow• GIT Architecture• Branching• Merge and Rebase• Dictator Model• Getting GIT Remote Repository• Git Help• Demos
  3. 3. Visualize SVN Vs GITKEY POINTS :SVN is vulnerable to corruptionSVN repository should have better backup plansSVN cannot work with low network speed.SVN consumes more spaceSVN is not scalable if your bases is of 1000s userSVN, if build is failed every one is stuckSVN, if central code is diluted all code fades outSVN, for collaboration code has to be checked in http://www.youtube.com/watch?v=ntTpM8hfl_E&feature=related
  4. 4. What is Delta Storage ?Instead of saving or replacing entire file, only differences are saved and tracked.
  5. 5. Svn is vulnerable Git portability – (Svn corruption problem)to corruption evenwhen the OS ormedia is notchanged. Howeverthe git can beported on dailybasis to differentmedia withoutcorruption, it isrobust it will be upafter 10 years.Animation – P 483 https://github.com/premaseem/precisionlms
  6. 6. Git Architecture• Index – Stores information about current working directory and changes made to it• Object Database – Blobs (files) • Stored in .git/objects • Indexed by unique hash • All files are stored as blobs – Trees (directories) – Commits • One object for every commit • Contains hash of parent, name of author, time of commit, and hash of the current tree – Tags
  7. 7. Git Workflow• Fetch or clone (create a copy of the remote repository) (compare to cvs check out)• Modify the files in the local branch• Stage the files (no cvs comparison)• Commit the files locally (no cvs comparison)• Push changes to remote repository (compare to cvs commit)
  8. 8. Git Local repository add commit Object Working tree Index store (sand box) (cache) pull, pushOther Repositories 8
  9. 9. How Git object Database worksEntire version history, branch data and content are hashed, compressed and stored locally to make it faster better and easy to share.
  10. 10. Light weight(delta) Branching(context switching)No massive copyingcan be switchedcan belocal/remotecan be sharedcommit specificbranch
  11. 11. Instead of stickingto one central Multiple remote repositoryrepository, githelps to deal withmultiple remoterepositoryRefer – p 188
  12. 12. The workflow Dictator modeldemonstrated heresolves the problemof multipleprojects workingon same codebase.Animation – P 483 https://github.com/premaseem/precisionlms
  13. 13. Getting git remote Getting Git Remote Repositoryrepository which isfree. It has simplelogin, configuration than you get theremote location toopen you codebase to rest of theworld forcontribution.(Pizz application)Demo https://github.com/premaseem/precisionlms
  14. 14. With SVN you arecompelled to Git Merge and Rebasemerge and sometime getsfrustrated to looseor rewrite whatyou were doing.Git will help you torebase andcontinue withoutdistractionRefer – p 213
  15. 15. Blog link for details of git commands : http://premaseem.wordpress.com/2011/11/16/git-commans/ 152Git Commands
  16. 16. Blog link for details of git commands : http://premaseem.wordpress.com/2011/11/16/git-commans/ GIT – “GUI”Graphic User Interface
  17. 17. Some GIT Disadvantages• Definite learning curve, especially for those used to centralized systems - Can sometimes seem overwhelming to learn • Documentation mostly through man pages
  18. 18. How to get help with git• Read That Fabulous Manual http://www.kernel.org/pub/software/scm/git/docs/user- manual.html• Books http://progit.org/book/ (free)• Online training: https://github.com/training/online• Git user groups online http://old.nabble.com/git-f12403.html• Git mailing lists git-users@googlegroups.com link: www.premaseem.com/git
  19. 19. Team Question ??
  20. 20. To download this presentation visit : www.premaseem.com/git
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×