SlideShare ist ein Scribd-Unternehmen logo
1 von 50
Git
Daniele Giunchi
Summary
•   SCM, VCS Terminology
•   SCM Models
•   History
•   Git Specs
•   Branching
•   Merging
•   Rebasing
•   Github
•   Git as Workflow Generator
•   Proposed Workflow for B3C


November 2011             Presentation B3C
SMC, VCS Terminology

• SMC -> Source Control Management
• VCS -> Version Control System
• CVS -> Concurrent Version System
  (App)
• SVN -> Subversion (App)
• Git -> is Git! (App)


November 2011          Presentation B3C
Let’s dive into Git!




                no git user                      git user


November 2011                 Presentation B3C
SCM Models
• Local Control Version Systems

• Centrilized Control Version Systems

• Distributed Control Version Systems




November 2011     Presentation B3C
Local Control Version Systems




November 2011     Presentation B3C
Local Control Version Systems
•   A directory in your filesystem!
•   A database
•   SCCS (1972)
•   RCS Revision Control System (1982)
•   PVCS (1985)




November 2011        Presentation B3C
Centrilized Control Version Systems




November 2011   Presentation B3C
Centrilized Control Version Systems
•   CVS (1990)
•   SVN (2000)
•   ClearCase (1992)
•   Visual SourceSafe (1994)
•   Perforce (1995)
•   Rational Team Concert (2008)



November 2011        Presentation B3C
Distributed Control Version Systems




November 2011   Presentation B3C
Distributed Control Version Systems
Git (2005)
Mercurial (2005)
Bazaar (2011)

Bitkeeper (1998)




November 2011      Presentation B3C
History
• Linux kernel (1991 - …)
• Free Lic. Bitkeeper (2oo2 – 2005)
• Git birth (2005)

Author : Linus Torvalds
Written: C , Bourne Shell, Perl
Licence: GNU GPL

November 2011    Presentation B3C
Hail Linus!




November 2011      Presentation B3C
Current Maintenance Chief!




                    Junio Hamano


November 2011      Presentation B3C
Characteristics
• Speed
• Simple design
• Strong support for non-linear development
  (thousands of parallel branches)
• Fully distributed
• Able to handle large projects
• Portable
Look at http://whygitisbetterthanx.com
November 2011       Presentation B3C
Git Specs: Snapshots Not Differences




November 2011   Presentation B3C
Git Specs: Snapshots Not Differences




November 2011   Presentation B3C
Git Specs: Speed? Integrity?
• Git operates locally
• Git has integrity: SHA1

Secure Hash Algorithm (40 ASCII chars)
1f8a690b7366a2323e2d5b045120da7e93896f47

1f8a690


November 2011        Presentation B3C
Git Specs: The Three States
• File can be committed, modified, and staged




November 2011             Presentation B3C
Git Specs: Recording Changes




November 2011      Presentation B3C
Git Specs: Add/Commit/Push




November 2011     Presentation B3C
Git Specs: A GUI please!!!!




November 2011         Presentation B3C
How Git storages data




November 2011          Presentation B3C
After some commits…




November 2011          Presentation B3C
…and now define “Branch”
• A branch in Git is simply a lightweight movable pointer to one
  of these commits.




November 2011              Presentation B3C
…and now Branch!




November 2011        Presentation B3C
… need a pointer to the snapshot!




November 2011   Presentation B3C
… and change the current branch…




November 2011   Presentation B3C
… suppose we achieve this graph …




November 2011   Presentation B3C
… and then commit into master…




November 2011   Presentation B3C
Toward The Merge




November 2011        Presentation B3C
Toward The Merge




November 2011        Presentation B3C
Toward The Merge




November 2011        Presentation B3C
Toward The Merge




November 2011        Presentation B3C
The Merge! Fast Forward Merge…




November 2011   Presentation B3C
Toward another Merge…




November 2011           Presentation B3C
Toward another Merge…




November 2011           Presentation B3C
The Merge! Three-way Merge…




November 2011   Presentation B3C
Rebase … What the hell ????




November 2011      Presentation B3C
OK…stop with Theory




November 2011          Presentation B3C
Github: base repository




November 2011           Presentation B3C
Git as Workflow Generator
• Git has access policies for the repositories
• Easy creation of branches

=> Creation of a Workflow




November 2011         Presentation B3C
B3C Workflow
•   develop branch
•   master branch
•   feature/topic branches
•   release branches
•   hotfix branches




November 2011        Presentation B3C
Workflow Model




November 2011       Presentation B3C
master - develop




November 2011        Presentation B3C
Feature branches




November 2011        Presentation B3C
Hotfix branches




November 2011       Presentation B3C
References
• http://git-scm.com/
• http://www.ndpsoftware.com/git-cheatsheet.html
• http://gitimmersion.com/


• ProGit




November 2011           Presentation B3C
Coming soon… Hands on session!




November 2011   Presentation B3C

Weitere ähnliche Inhalte

Andere mochten auch

Version Control using Plastic (SCM) by Tonny
Version Control using Plastic (SCM) by TonnyVersion Control using Plastic (SCM) by Tonny
Version Control using Plastic (SCM) by Tonny
Agate Studio
 
Mc donald’s e procurement, Supply Chain and Logistics
Mc donald’s e procurement, Supply Chain and LogisticsMc donald’s e procurement, Supply Chain and Logistics
Mc donald’s e procurement, Supply Chain and Logistics
mjahanzaib
 
Supply chain management of McDonalds
Supply chain management of McDonaldsSupply chain management of McDonalds
Supply chain management of McDonalds
Saravanan rulez
 

Andere mochten auch (13)

Version Control using Plastic (SCM) by Tonny
Version Control using Plastic (SCM) by TonnyVersion Control using Plastic (SCM) by Tonny
Version Control using Plastic (SCM) by Tonny
 
HLL Net
HLL NetHLL Net
HLL Net
 
SCM (Source Control Management) - Git Basic
SCM (Source Control Management) - Git Basic SCM (Source Control Management) - Git Basic
SCM (Source Control Management) - Git Basic
 
2016 - Continuously Delivering Microservices in Kubernetes using Jenkins
2016 - Continuously Delivering Microservices in Kubernetes using Jenkins2016 - Continuously Delivering Microservices in Kubernetes using Jenkins
2016 - Continuously Delivering Microservices in Kubernetes using Jenkins
 
Workflow in SharePoint 2013
Workflow in SharePoint 2013Workflow in SharePoint 2013
Workflow in SharePoint 2013
 
Build, Publish, Deploy and Test Docker images and containers with Jenkins Wor...
Build, Publish, Deploy and Test Docker images and containers with Jenkins Wor...Build, Publish, Deploy and Test Docker images and containers with Jenkins Wor...
Build, Publish, Deploy and Test Docker images and containers with Jenkins Wor...
 
Mc donald's SCM (ppt)
Mc donald's SCM (ppt)Mc donald's SCM (ppt)
Mc donald's SCM (ppt)
 
Mc donald’s e procurement, Supply Chain and Logistics
Mc donald’s e procurement, Supply Chain and LogisticsMc donald’s e procurement, Supply Chain and Logistics
Mc donald’s e procurement, Supply Chain and Logistics
 
Supply Chain Management of ZARA
Supply Chain Management of ZARASupply Chain Management of ZARA
Supply Chain Management of ZARA
 
Supply Chain Management
Supply Chain ManagementSupply Chain Management
Supply Chain Management
 
Supply Chain Management of TOYOTA.......case study by sabio bernard.
Supply Chain Management of TOYOTA.......case study by sabio bernard.Supply Chain Management of TOYOTA.......case study by sabio bernard.
Supply Chain Management of TOYOTA.......case study by sabio bernard.
 
Supply chain management of McDonalds
Supply chain management of McDonaldsSupply chain management of McDonalds
Supply chain management of McDonalds
 
Supply Chain Management in the Motor Vehicle Industry, the Example of Mini.
Supply Chain Management in the Motor Vehicle Industry, the Example of Mini.Supply Chain Management in the Motor Vehicle Industry, the Example of Mini.
Supply Chain Management in the Motor Vehicle Industry, the Example of Mini.
 

Kürzlich hochgeladen

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Kürzlich hochgeladen (20)

Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 

Introduction to Git