Git Advantages ·Resilience No one repository has more data than any other 。Speed Very fast operations compared to other VCS(I'm looking at you CVS and Subversion) ·Space Compression can be done across repository not just per file Minimizes local size as well as push/pull data transfers 。Simplicity Object model is very simple Large userbase with robust tools 11
Git Advantages • Resilience – No one repository has more data than any other • Speed – Very fast operations compared to other VCS (I’m looking at you CVS and Subversion) • Space – Compression can be done across repository not just per file – Minimizes local size as well as push/pull data transfers • Simplicity – Object model is very simple • Large userbase with robust tools 11
Some GIT Disadvantages Definite learning curve,especially for those used to centralized systems Can sometimes seem overwhelming to learn Conceptual difference Huge amount of commends 12
Some GIT Disadvantages • Definite learning curve, especially for those used to centralized systems – Can sometimes seem overwhelming to learn • Conceptual difference • Huge amount of commends 12
Getting Started Git use snapshot storage C3 C4 file A 41 △2 delta storage file B △2 file C 41 △2 △3 C1 C5 snapshot storage C2 C2 C3 13
Getting Started • Git use snapshot storage 13
Getting Started ·Three trees of Git -The HEAD last commit snapshot,next parent Index HEAD Index Working Directory Proposed next commit snapshot Checkout the project Working directory ·Sandbox Stage files Commit 14
Getting Started • Three trees of Git – The HEAD • last commit snapshot, next parent – Index • Proposed next commit snapshot – Working directory • Sandbox 14
Getting Started ·A basic workflow -(Possible init or clone)Init a repo -Edit files Stage the changes Review your changes -Commit the changes 15
Getting Started • A basic workflow – (Possible init or clone) Init a repo – Edit files – Stage the changes – Review your changes – Commit the changes 15