SlideShare ist ein Scribd-Unternehmen logo
1 von 70
Git! (a) Gentle InTroduction Bruno Bossola
Git! ,[object Object]
Concepts
Working with repos and files
Working with remotes
Branching
Remote branches
Tools
Q&A ,[object Object]
About version control Picture courtesy of globalnerdy.com All rights kindly reserved
Version control: centralized Picture courtesy of progit.org. All rights kindly reserved ,[object Object]
SVN
Version control: distributed ,[object Object]
Mercurial
Bazaar Picture courtesy of progit.org. All rights kindly reserved
Concepts
Concepts ,[object Object]
Nearly every operation is local
Integrity is a priority
The “three states
Snapshot, not deltas ,[object Object],Picture courtesy of progit.org. All rights kindly reserved
Snapshot, not deltas ,[object Object],Picture courtesy of progit.org. All rights kindly reserved
Most operations are local ,[object Object]
Browsing, changes, search all happening locally
You can do almost everything  without  network
...and all the db is in a nice, clean , separate .git folder :)
Integrity is a priority ,[object Object]
40-character string such as: ,[object Object]
Git generally only adds data 95b87297210672b16bb70ded20626c9c551ccd58
The Three States ,[object Object]
Committed
Staged Picture courtesy of progit.org. All rights kindly reserved
Git Setup  (1) ,[object Object],[object Object]
yum install git-core
http://code.google.com/p/git-osx-installer
http://code.google.com/p/msysgit
Git Setup  (2) ,[object Object]
Double check! ,[object Object],[object Object],[object Object]
Working with repos and files Picture courtesy of questionhub.com. All rights kindly reserved
Create a repository ,[object Object]
.git folder contains the database ,[object Object]
Clone a repository ,[object Object]
http(s)
ssh ,[object Object],[object Object]
File status  Picture courtesy of progit.org. All rights kindly reserved
Initial status ,[object Object],[object Object]
Add a file ,[object Object],[object Object]
Track the file ,[object Object],[object Object]
Change existing file ,[object Object]
Track the changed file ,[object Object],[object Object]
Change already staged file ,[object Object]
WTF? ,[object Object]
If you commit now the first one will go in
to stage the existing version: ,[object Object]
Committing ,[object Object]
This will invoke your editor, better do this: ,[object Object],[object Object]
Remove existing file  (1) ,[object Object],[object Object]
Remove existing file  (2) ,[object Object],[object Object]
From staged to modified  ,[object Object]
Discarding changes ,[object Object]
Yes, “checkout” is a bit weird :) ,[object Object]
Changing a commit ,[object Object],[object Object]
Looking into commits ,[object Object]
Looking into one commit ,[object Object],[object Object]
Working with remotes Picture courtesy of useit.com. All rights kindly reserved
Working with remotes ,[object Object]
sometimes one main r/w, other r/o,
rarely multiple ,[object Object]
Branching Picture courtesy of campus.houghton.edu. All rights kindly reserved
How Git stores data ,[object Object]

Weitere Àhnliche Inhalte

Was ist angesagt?

Git Introduction
Git IntroductionGit Introduction
Git Introduction
Gareth Hall
 
Git real slides
Git real slidesGit real slides
Git real slides
Lucas Couto
 

Was ist angesagt? (20)

Git Real
Git RealGit Real
Git Real
 
Introduction to Git and GitHub
Introduction to Git and GitHubIntroduction to Git and GitHub
Introduction to Git and GitHub
 
Git Basics - RubyFest 2009
Git Basics - RubyFest 2009Git Basics - RubyFest 2009
Git Basics - RubyFest 2009
 
Git: An introduction of plumbing and porcelain commands
Git: An introduction of plumbing and porcelain commandsGit: An introduction of plumbing and porcelain commands
Git: An introduction of plumbing and porcelain commands
 
Git Introduction Tutorial
Git Introduction TutorialGit Introduction Tutorial
Git Introduction Tutorial
 
Advanced Git Presentation By Swawibe
Advanced Git Presentation By SwawibeAdvanced Git Presentation By Swawibe
Advanced Git Presentation By Swawibe
 
git and github
git and githubgit and github
git and github
 
Git Introduction
Git IntroductionGit Introduction
Git Introduction
 
Git & Github for beginners
Git & Github for beginnersGit & Github for beginners
Git & Github for beginners
 
Starting with Git & GitHub
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHub
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHub
 
Git real slides
Git real slidesGit real slides
Git real slides
 
Git Version Control System
Git Version Control SystemGit Version Control System
Git Version Control System
 
Gitting out of trouble
Gitting out of troubleGitting out of trouble
Gitting out of trouble
 
Github - Git Training Slides: Foundations
Github - Git Training Slides: FoundationsGithub - Git Training Slides: Foundations
Github - Git Training Slides: Foundations
 
Inside GitHub
Inside GitHubInside GitHub
Inside GitHub
 
Git: basic to advanced
Git: basic to advancedGit: basic to advanced
Git: basic to advanced
 
GIT | Distributed Version Control System
GIT | Distributed Version Control SystemGIT | Distributed Version Control System
GIT | Distributed Version Control System
 
Git Basics at Rails Underground
Git Basics at Rails UndergroundGit Basics at Rails Underground
Git Basics at Rails Underground
 
Github
GithubGithub
Github
 

Ähnlich wie Git - (a) Gentle InTroduction

How to use git without rage
How to use git without rageHow to use git without rage
How to use git without rage
Javier Lafora Rey
 
Gittalk
GittalkGittalk
Gittalk
prtinsley
 

Ähnlich wie Git - (a) Gentle InTroduction (20)

How to use git without rage
How to use git without rageHow to use git without rage
How to use git without rage
 
Introduction to Git (Greg Lonnon)
Introduction to Git (Greg Lonnon)Introduction to Git (Greg Lonnon)
Introduction to Git (Greg Lonnon)
 
Learn Git Basics
Learn Git BasicsLearn Git Basics
Learn Git Basics
 
Learning git
Learning gitLearning git
Learning git
 
Git and github introduction
Git and github introductionGit and github introduction
Git and github introduction
 
Pro git - grasping it conceptually
Pro git - grasping it conceptuallyPro git - grasping it conceptually
Pro git - grasping it conceptually
 
Loading...git
Loading...gitLoading...git
Loading...git
 
Wokshop de Git
Wokshop de Git Wokshop de Git
Wokshop de Git
 
Gittalk
GittalkGittalk
Gittalk
 
IntroducciĂłn a git y GitHub
IntroducciĂłn a git y GitHubIntroducciĂłn a git y GitHub
IntroducciĂłn a git y GitHub
 
Matt Gauger - Git & Github web414 December 2010
Matt Gauger - Git & Github web414 December 2010Matt Gauger - Git & Github web414 December 2010
Matt Gauger - Git & Github web414 December 2010
 
Git introduction
Git introductionGit introduction
Git introduction
 
Git github
Git githubGit github
Git github
 
Git Basics (Professionals)
 Git Basics (Professionals) Git Basics (Professionals)
Git Basics (Professionals)
 
Git cheat-sheet
Git cheat-sheetGit cheat-sheet
Git cheat-sheet
 
Git cheat-sheet 2021
Git cheat-sheet 2021Git cheat-sheet 2021
Git cheat-sheet 2021
 
The Fundamentals of Git
The Fundamentals of GitThe Fundamentals of Git
The Fundamentals of Git
 
Introduction to GIT
Introduction to GITIntroduction to GIT
Introduction to GIT
 
Git with the flow
Git with the flowGit with the flow
Git with the flow
 
Git Started With Git
Git Started With GitGit Started With Git
Git Started With Git
 

Mehr von Bruno Bossola

Mehr von Bruno Bossola (7)

Tools to create a secure build pipeline
Tools to create a secure build pipelineTools to create a secure build pipeline
Tools to create a secure build pipeline
 
Distributed Systems
Distributed SystemsDistributed Systems
Distributed Systems
 
Microservices, the lean way
Microservices, the lean wayMicroservices, the lean way
Microservices, the lean way
 
jp06_bossola
jp06_bossolajp06_bossola
jp06_bossola
 
Microservices - the lean way
Microservices - the lean wayMicroservices - the lean way
Microservices - the lean way
 
Geecon10: Object Oriented for nonbelievers
Geecon10: Object Oriented for nonbelieversGeecon10: Object Oriented for nonbelievers
Geecon10: Object Oriented for nonbelievers
 
Geecon09: SOLID Design Principles
Geecon09: SOLID Design PrinciplesGeecon09: SOLID Design Principles
Geecon09: SOLID Design Principles
 

KĂŒrzlich hochgeladen

+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...
?#DUbAI#??##{{(☎+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

KĂŒrzlich hochgeladen (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
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
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
+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...
 
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...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
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
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

Git - (a) Gentle InTroduction