SlideShare a Scribd company logo
Git
An Introduction
K. ARVIND
Overture Networks
December 2013
DRAWS LIBERALLY FROM VARIOUS ONLINE RESOURCES, ESPECIALLY SCOTT CHACON’s EXCELLENT BOOK ON GIT
● What is Git?
● How is Git different?
● Giit conceptual overview
○ Hashes, Repository, Branching
Plan
• Distributed Version Control System
• Linux Community
• 2005
What is Git?
● Single server that contains versioned files
● Clients have version being worked on
● Easy to administer
● Single point of failure
● Need connectivity to commit
● Subversion, CVS, Perforce
Centralized VCS
Distributed VCS
● Every client has the full repository
● Central repository may also be used
● Local commits followed by push
● Fault Tolerant
● Work off-line
Why Git?
● Fast
● Simple
● Branching
● Fully distributed
● Scales well
No Deltas!
Dog ate cable - No problem!
Nearly every operation is local!
Name is a Digest
Git object name = SHA-1 hash of contents
Built-in integrity check
Cryptographic Digest
Commit Hash: Git Bash
SOME PROPRIETARY INFORMATION REDACTED BELOW
Digest “uniqueness” is “real”!
SOME PROPRIETARY INFORMATION REDACTED BELOW
Commit Hash - Gitk
SOME PROPRIETARY INFORMATION REDACTED BELOW
Commit Hash: TortoiseGitSOME PROPRIETARY INFORMATION REDACTED BELOW
Git Objects
Commit History
Git Repository
Git Repository
Git repository
Branch - Pointer to a commit
● HEAD - points to current branch
● master - default branch
No branches added
Add a branch
gitbash> git branch testing f30ab
HEAD still points to master
Switch to branch
gitbash> git checkout testing
HEAD has moved to testing
Commit on branch
testing points to new commit
HEAD still points to testing
Switch back to master branch
gitbash> git checkout master
HEAD points to master now
Commit on master
Diverging branches - need to merge
later
Merge
gitbash> git merge iss53
Preferred alternative: git rebase
Pulling remote branches
Conclusion
● Conceptual overview
● Many key concepts
● Free resources available online for further
study:
● ProGit by Scott Chacon - http://git-scm.com/book
Thank you Scott Chacon!

More Related Content

PPTX
Introduction to git
PDF
Kubernautes meetup II
PPTX
RuCTFE 2015 Services Write-Ups
PPTX
An introduction to git
PPTX
Git intro - agilsun
PDF
Microservices
PDF
batou lightning talk @ PyConDE 2017
PPTX
Intro to Codefresh YAML
Introduction to git
Kubernautes meetup II
RuCTFE 2015 Services Write-Ups
An introduction to git
Git intro - agilsun
Microservices
batou lightning talk @ PyConDE 2017
Intro to Codefresh YAML

What's hot (18)

PPTX
Learn Git - For Beginners and Intermediate levels
PPTX
Concepts of Open source
PPTX
Open Source Monitoring with Icinga at Fossasia 2015
PPTX
PDF
2016 COSCUP ONOS
PDF
MoniTutor
PDF
Icinga Web 2 at Icinga Camp San Francisco
PDF
proxy2: HTTPS pins and needles
PPTX
My internwork
 
PPTX
Knockout
PDF
stackconf 2021 | First hand experience: How Nextcloud stayed productive durin...
PDF
Icinga 1, Icinga 2 @ FrOSCon 2014
PDF
Nats.io meetup october 2015 - Community Update
PPTX
FIWARE Wednesday Webinars - How to Secure FIWARE Architectures
PDF
Icinga 2012 Development at 6th TF-NOC Meeting
PPTX
What is Nagios XI and how is it different from Nagios Core
PPTX
Icinga Camp Antwerp - Icinga2 Configuration
PPTX
Welcome Icinga Camp San Francisco 2014
Learn Git - For Beginners and Intermediate levels
Concepts of Open source
Open Source Monitoring with Icinga at Fossasia 2015
2016 COSCUP ONOS
MoniTutor
Icinga Web 2 at Icinga Camp San Francisco
proxy2: HTTPS pins and needles
My internwork
 
Knockout
stackconf 2021 | First hand experience: How Nextcloud stayed productive durin...
Icinga 1, Icinga 2 @ FrOSCon 2014
Nats.io meetup october 2015 - Community Update
FIWARE Wednesday Webinars - How to Secure FIWARE Architectures
Icinga 2012 Development at 6th TF-NOC Meeting
What is Nagios XI and how is it different from Nagios Core
Icinga Camp Antwerp - Icinga2 Configuration
Welcome Icinga Camp San Francisco 2014
Ad

Viewers also liked (6)

PDF
Git - Intro to the Basics of DVCS
PPTX
Github basics
PDF
Git and GitHub for Documentation
PPTX
Introduction to Git/Github - A beginner's guide
PDF
Git 101: Git and GitHub for Beginners
Git - Intro to the Basics of DVCS
Github basics
Git and GitHub for Documentation
Introduction to Git/Github - A beginner's guide
Git 101: Git and GitHub for Beginners
Ad

Similar to Git - An Introduction (20)

PDF
Introduction to Git
PDF
Git introduction for Beginners
PPTX
GIT INTRODUCTION
PPTX
Git.From thorns to the stars
PPT
Introduction to git
PPTX
Git hub_pptx
PDF
Let's talk GIt
ODP
Introduction to Git
PPTX
Introduction to GIT Endava 2023
PDF
Harvard ABCD-WWW Git presentation
PDF
Git: a tool for wizards
PPTX
Version Control with Git
ODP
Git: be social
PPTX
PPTX
Git 101
PPTX
Git workshop 33degree 2011 krakow
PDF
Version Control with Git
PDF
Rc094 010d-git 2 - desconocido
PDF
Mini git tutorial
Introduction to Git
Git introduction for Beginners
GIT INTRODUCTION
Git.From thorns to the stars
Introduction to git
Git hub_pptx
Let's talk GIt
Introduction to Git
Introduction to GIT Endava 2023
Harvard ABCD-WWW Git presentation
Git: a tool for wizards
Version Control with Git
Git: be social
Git 101
Git workshop 33degree 2011 krakow
Version Control with Git
Rc094 010d-git 2 - desconocido
Mini git tutorial

More from Krishnamoorthy Arvind (6)

PDF
Network Function Virtualization Orchestration LI
PDF
MIB Test Environment
PPT
IIR Geneva 2001 Final
PPT
IIR VPN London
PDF
PPS
Network Function Virtualization Orchestration LI
MIB Test Environment
IIR Geneva 2001 Final
IIR VPN London

Git - An Introduction