SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Version Control with Git
           By Sean McGary



      http://seanmcgary.com/git
Agenda
Agenda

•   What is Version Control?

•   Types of Version Control

•   History of Git

•   Git Basics

•   Live Demo
Version Control
Version Control

•    What is Version Control?
    • A system that records changes to files over time.
    • Keeping track of changes allows you to.
     • Revert the file, files, or the entire project to a previous state.
     • Compare changes over time.
     • See who modified the source last
    • Allows for easy collaboration between between multiple people
Types of Version Control Systems
Types of Version Control Systems

•    Local Version Control
    • Simple as copying files to another directory
    • Very prone to errors
    • Works by keeping patch sets (diffs)
    • RCS
Types of Version Control Systems
Types of Version Control Systems

•    Centralized Version Control
    • Hosted on a remote server
    • Clients check out files, modify them, then push them back to the
      server
    • Popular CVCS’s
     • CVS
     • SVN
Types of Version Control Systems
Types of Version Control Systems


•   Distributed Version Control Systems
    • Designed to prevent the disasters possible with other VCS’s
    • Clients don’t checkout single files, they clone the entire repository
The History of Git
The History of Git
•   Originally created by Linus Torvalds in 2005
•   Why was Git developed?
    • Needed a home grown VCS to manage so many people making
      many many changes.
    • Bit Keeper was no longer free. Linus did not like this
    • Goals of Git
       • Speed
       • Simplicity
       • Strong support for non-linear development (Branches!!!)
       • Fully distributed
Git Basics
Git Basics

•   Snapshots, not Diffs
•   Almost everything is local
    • Cloned repository
    • Offline productivity
•   Integrity
    • SHA-1 hash check-sums
The Three Stages/States
The Three Stages/States
•   Three main states your files can reside in
    • Modified
    • Staged
    • Committed
•   Three stages
    • Working directory
    • Staging area
    • Git directory
Basic Workflow
Basic Workflow

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to git and stash
Introduction to git and stashIntroduction to git and stash
Introduction to git and stashXpand IT
 
Game Programming - Git
Game Programming - GitGame Programming - Git
Game Programming - GitNick Pruehs
 
Game Programming 03 - Git Flow
Game Programming 03 - Git FlowGame Programming 03 - Git Flow
Game Programming 03 - Git FlowNick Pruehs
 
simple Introduction to git
simple Introduction to gitsimple Introduction to git
simple Introduction to gitOmid Khosrojerdi
 
Tool Development A - Git
Tool Development A - GitTool Development A - Git
Tool Development A - GitNick Pruehs
 
Evolution of Version Control In Open Source
Evolution of Version Control In Open SourceEvolution of Version Control In Open Source
Evolution of Version Control In Open SourceChris Aniszczyk
 
Git in the Van HighEdWeb 2013
Git in the Van HighEdWeb 2013Git in the Van HighEdWeb 2013
Git in the Van HighEdWeb 2013Annette Liskey
 
Intro to Codefresh YAML
Intro to Codefresh YAML  Intro to Codefresh YAML
Intro to Codefresh YAML Codefresh
 

Was ist angesagt? (10)

Git tutorial
Git tutorialGit tutorial
Git tutorial
 
Git and github
Git and githubGit and github
Git and github
 
Introduction to git and stash
Introduction to git and stashIntroduction to git and stash
Introduction to git and stash
 
Game Programming - Git
Game Programming - GitGame Programming - Git
Game Programming - Git
 
Game Programming 03 - Git Flow
Game Programming 03 - Git FlowGame Programming 03 - Git Flow
Game Programming 03 - Git Flow
 
simple Introduction to git
simple Introduction to gitsimple Introduction to git
simple Introduction to git
 
Tool Development A - Git
Tool Development A - GitTool Development A - Git
Tool Development A - Git
 
Evolution of Version Control In Open Source
Evolution of Version Control In Open SourceEvolution of Version Control In Open Source
Evolution of Version Control In Open Source
 
Git in the Van HighEdWeb 2013
Git in the Van HighEdWeb 2013Git in the Van HighEdWeb 2013
Git in the Van HighEdWeb 2013
 
Intro to Codefresh YAML
Intro to Codefresh YAML  Intro to Codefresh YAML
Intro to Codefresh YAML
 

Andere mochten auch

Tokyo Report 2 - PechaKucha Style
Tokyo Report 2 - PechaKucha StyleTokyo Report 2 - PechaKucha Style
Tokyo Report 2 - PechaKucha StyleHyun Chung
 
Possessive adjectives &-pronouns
Possessive adjectives &-pronounsPossessive adjectives &-pronouns
Possessive adjectives &-pronounsCarlos Juarez N
 
A Modern Monument
A Modern MonumentA Modern Monument
A Modern MonumentHyun Chung
 
John Hejduk: Surrealism+Architecture / The Architectural Uncanny / Berlin Mas...
John Hejduk: Surrealism+Architecture / The Architectural Uncanny / Berlin Mas...John Hejduk: Surrealism+Architecture / The Architectural Uncanny / Berlin Mas...
John Hejduk: Surrealism+Architecture / The Architectural Uncanny / Berlin Mas...Hyun Chung
 
Richard meier and john hejduk
Richard meier and john hejdukRichard meier and john hejduk
Richard meier and john hejdukvikashsaini78
 

Andere mochten auch (6)

Tokyo Report 2 - PechaKucha Style
Tokyo Report 2 - PechaKucha StyleTokyo Report 2 - PechaKucha Style
Tokyo Report 2 - PechaKucha Style
 
A4
A4A4
A4
 
Possessive adjectives &-pronouns
Possessive adjectives &-pronounsPossessive adjectives &-pronouns
Possessive adjectives &-pronouns
 
A Modern Monument
A Modern MonumentA Modern Monument
A Modern Monument
 
John Hejduk: Surrealism+Architecture / The Architectural Uncanny / Berlin Mas...
John Hejduk: Surrealism+Architecture / The Architectural Uncanny / Berlin Mas...John Hejduk: Surrealism+Architecture / The Architectural Uncanny / Berlin Mas...
John Hejduk: Surrealism+Architecture / The Architectural Uncanny / Berlin Mas...
 
Richard meier and john hejduk
Richard meier and john hejdukRichard meier and john hejduk
Richard meier and john hejduk
 

Ähnlich wie Git

Evolution of GIT - Linus Torvald's magic
Evolution of GIT - Linus Torvald's magicEvolution of GIT - Linus Torvald's magic
Evolution of GIT - Linus Torvald's magicanand devanathan
 
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)Ahmed El-Arabawy
 
Harvard ABCD-WWW Git presentation
Harvard ABCD-WWW Git presentationHarvard ABCD-WWW Git presentation
Harvard ABCD-WWW Git presentationJeff Byrnes
 
Source Control Using Git
Source Control Using Git Source Control Using Git
Source Control Using Git Chris Mylonas
 
Make It Cooler: Using Decentralized Version Control
Make It Cooler: Using Decentralized Version ControlMake It Cooler: Using Decentralized Version Control
Make It Cooler: Using Decentralized Version Controlindiver
 
Source control system SVN, QLIKVIEW & GIT
Source control system SVN, QLIKVIEW & GITSource control system SVN, QLIKVIEW & GIT
Source control system SVN, QLIKVIEW & GITSatish C Ayappan
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to gitRam0603
 
Source-it Version-contol & GIT - floating-lesson
Source-it Version-contol & GIT - floating-lessonSource-it Version-contol & GIT - floating-lesson
Source-it Version-contol & GIT - floating-lessonYoram Michaeli
 
Git with bitbucket (draft)
Git with bitbucket (draft)Git with bitbucket (draft)
Git with bitbucket (draft)Sumin Byeon
 
An introduction to git
An introduction to gitAn introduction to git
An introduction to gitShakeel Tariq
 

Ähnlich wie Git (20)

Git SVN Migrate Reasons
Git SVN Migrate ReasonsGit SVN Migrate Reasons
Git SVN Migrate Reasons
 
GIT INTRODUCTION
GIT INTRODUCTIONGIT INTRODUCTION
GIT INTRODUCTION
 
Evolution of GIT - Linus Torvald's magic
Evolution of GIT - Linus Torvald's magicEvolution of GIT - Linus Torvald's magic
Evolution of GIT - Linus Torvald's magic
 
Intro to git
Intro to gitIntro to git
Intro to git
 
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
 
Harvard ABCD-WWW Git presentation
Harvard ABCD-WWW Git presentationHarvard ABCD-WWW Git presentation
Harvard ABCD-WWW Git presentation
 
Source Control Using Git
Source Control Using Git Source Control Using Git
Source Control Using Git
 
Git
GitGit
Git
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
GIT In Detail
GIT In DetailGIT In Detail
GIT In Detail
 
Git theory
Git   theoryGit   theory
Git theory
 
Make It Cooler: Using Decentralized Version Control
Make It Cooler: Using Decentralized Version ControlMake It Cooler: Using Decentralized Version Control
Make It Cooler: Using Decentralized Version Control
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to git
 
Source control system SVN, QLIKVIEW & GIT
Source control system SVN, QLIKVIEW & GITSource control system SVN, QLIKVIEW & GIT
Source control system SVN, QLIKVIEW & GIT
 
Git
GitGit
Git
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to git
 
Git
GitGit
Git
 
Source-it Version-contol & GIT - floating-lesson
Source-it Version-contol & GIT - floating-lessonSource-it Version-contol & GIT - floating-lesson
Source-it Version-contol & GIT - floating-lesson
 
Git with bitbucket (draft)
Git with bitbucket (draft)Git with bitbucket (draft)
Git with bitbucket (draft)
 
An introduction to git
An introduction to gitAn introduction to git
An introduction to git
 

Kürzlich hochgeladen

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
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...apidays
 

Kürzlich hochgeladen (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
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...
 

Git

  • 1. Version Control with Git By Sean McGary http://seanmcgary.com/git
  • 3. Agenda • What is Version Control? • Types of Version Control • History of Git • Git Basics • Live Demo
  • 5. Version Control • What is Version Control? • A system that records changes to files over time. • Keeping track of changes allows you to. • Revert the file, files, or the entire project to a previous state. • Compare changes over time. • See who modified the source last • Allows for easy collaboration between between multiple people
  • 6. Types of Version Control Systems
  • 7. Types of Version Control Systems • Local Version Control • Simple as copying files to another directory • Very prone to errors • Works by keeping patch sets (diffs) • RCS
  • 8. Types of Version Control Systems
  • 9. Types of Version Control Systems • Centralized Version Control • Hosted on a remote server • Clients check out files, modify them, then push them back to the server • Popular CVCS’s • CVS • SVN
  • 10. Types of Version Control Systems
  • 11. Types of Version Control Systems • Distributed Version Control Systems • Designed to prevent the disasters possible with other VCS’s • Clients don’t checkout single files, they clone the entire repository
  • 13. The History of Git • Originally created by Linus Torvalds in 2005 • Why was Git developed? • Needed a home grown VCS to manage so many people making many many changes. • Bit Keeper was no longer free. Linus did not like this • Goals of Git • Speed • Simplicity • Strong support for non-linear development (Branches!!!) • Fully distributed
  • 15. Git Basics • Snapshots, not Diffs • Almost everything is local • Cloned repository • Offline productivity • Integrity • SHA-1 hash check-sums
  • 17. The Three Stages/States • Three main states your files can reside in • Modified • Staged • Committed • Three stages • Working directory • Staging area • Git directory

Hinweis der Redaktion

  1. Slide Notes