SlideShare a Scribd company logo
Git - Fast Version Control System




       Presentation By: Aseem Jain
Agenda (apart from fun)
•   Visualize “GIT Vs SVN”
•   What is Delta Storage ?
•   GIT Work Flow
•   GIT Architecture
•   Branching
•   Merge and Rebase
•   Dictator Model
•   Getting GIT Remote Repository
•   Git Help
•   Demos
Visualize SVN Vs GIT
KEY POINTS :
SVN is vulnerable to corruption
SVN repository should have better backup plans
SVN cannot work with low network speed.
SVN consumes more space
SVN is not scalable if your bases is of 1000s user
SVN, if build is failed every one is stuck
SVN, if central code is diluted all code fades out
SVN, for collaboration code has to be checked in




                                                     http://www.youtube.com/watch?v=ntTpM8hfl_E&feature=related
What is Delta Storage ?




Instead of saving or replacing entire file, only differences are saved and tracked.
Svn is vulnerable
                       Git portability – (Svn corruption problem)
to corruption even
when the OS or
media is not
changed. However
the git can be
ported on daily
basis to different
media without
corruption, it is
robust it will be up
after 10 years.

Animation – P 483




                           https://github.com/premaseem/precisionlms
Git Architecture
•   Index
     – Stores information about current working directory and
        changes made to it
•   Object Database
     – Blobs (files)
          • Stored in .git/objects
          • Indexed by unique hash
          • All files are stored as blobs
     – Trees (directories)
     – Commits
          • One object for every commit
          • Contains hash of parent, name of author, time of
            commit, and hash of the current tree
     – Tags
Git Workflow
• Fetch or clone (create a copy of the remote
  repository) (compare to cvs check out)
• Modify the files in the local branch
• Stage the files (no cvs comparison)
• Commit the files locally (no cvs comparison)
• Push changes to remote repository (compare to
  cvs commit)
Git Local repository
                     add                 commit

                                                  Object
   Working tree             Index
                                                   store
    (sand box)             (cache)




                            pull, push


Other Repositories
                                                           8
How Git object Database works




Entire version history, branch data and content are hashed, compressed and stored
    locally to make it faster better and easy to share.
Light weight(delta)   Branching(context switching)
No massive copying
can be switched
can be
local/remote
can be shared
commit specific
branch
Instead of sticking
to one central
                      Multiple remote repository
repository, git
helps to deal with
multiple remote
repository
Refer – p 188
The workflow
                                Dictator model
demonstrated here
solves the problem
of multiple
projects working
on same codebase.

Animation – P 483




                     https://github.com/premaseem/precisionlms
Getting git remote    Getting Git Remote Repository
repository which is
free. It has simple
login, configuratio
n than you get the
remote location to
open you code
base to rest of the
world for
contribution.

(Pizz application)
Demo




                        https://github.com/premaseem/precisionlms
With SVN you are
compelled to           Git Merge and Rebase
merge and some
time gets
frustrated to loose
or rewrite what
you were doing.

Git will help you to
rebase and
continue without
distraction
Refer – p 213
Blog link for details of git commands :
               http://premaseem.wordpress.com/2011/11/16/git-commans/
      152
Git Commands
Blog link for details of git commands :
                         http://premaseem.wordpress.com/2011/11/16/git-commans/
    GIT – “GUI”
Graphic User Interface
Some GIT Disadvantages
• Definite learning curve, especially for those used to
  centralized systems
   - Can sometimes seem overwhelming to learn 


• Documentation mostly through man pages
How to get help with git
• Read That Fabulous Manual
  http://www.kernel.org/pub/software/scm/git/docs/user-
  manual.html
• Books http://progit.org/book/ (free)
• Online training: https://github.com/training/online
• Git user groups online http://old.nabble.com/git-f12403.html
• Git mailing lists git-users@googlegroups.com
                 link: www.premaseem.com/git
Team Question ?

?
To download this presentation visit :   www.premaseem.com/git

More Related Content

PDF
Git Branching for Agile Teams
PDF
Git best practices workshop
PPTX
Intro to git and git hub
PPTX
Git and GitFlow branching model
PPTX
Introduction git
PPTX
Git and GitHub
PDF
Introduction to git
KEY
Introduction To Git
Git Branching for Agile Teams
Git best practices workshop
Intro to git and git hub
Git and GitFlow branching model
Introduction git
Git and GitHub
Introduction to git
Introduction To Git

What's hot (20)

PPT
Git basic
PPTX
Git branching strategies
PDF
Git 101: Git and GitHub for Beginners
PPTX
Introduction to github slideshare
PPTX
Git - Basic Crash Course
PPTX
Git hub ppt presentation
PPTX
Git One Day Training Notes
PPTX
Basic Git Intro
PPTX
Git and github
PPTX
GIT presentation
PPTX
Github
PPTX
Gitlab CI/CD
PPTX
PPTX
PDF
Git basics
PDF
Starting with Git & GitHub
PDF
Git for beginners
PDF
Introducing GitLab
PDF
Git Introduction Tutorial
PPTX
Source control
Git basic
Git branching strategies
Git 101: Git and GitHub for Beginners
Introduction to github slideshare
Git - Basic Crash Course
Git hub ppt presentation
Git One Day Training Notes
Basic Git Intro
Git and github
GIT presentation
Github
Gitlab CI/CD
Git basics
Starting with Git & GitHub
Git for beginners
Introducing GitLab
Git Introduction Tutorial
Source control
Ad

Viewers also liked (20)

PDF
Quick Introduction to git
KEY
Introduction to Git
PPTX
Introduction to Git/Github - A beginner's guide
PPT
Git Introduction
PPT
Git 101 - Crash Course in Version Control using Git
PDF
Git: A Getting Started Presentation
PDF
Intro To Git
PDF
Git Version Control System
PDF
A brief introduction to version control systems
ODP
Git vs svn
PDF
Git Tutorial 教學
PDF
Git and GitHub for Documentation
PPT
Git vs SVN
PDF
DeveloperWeek 2015: A Practical Introduction to Docker
PDF
Learning git
PDF
Tech thursdays / GIT
PDF
Version control with GIT
PDF
Hybrid Clouds: EC2/Heroku Calculator
PDF
Git vs Subversion: ¿Cuando elegir uno u otro?
PDF
JAZOON'13 - Bartosz Majsak - Git Workshop - Kung Fu
Quick Introduction to git
Introduction to Git
Introduction to Git/Github - A beginner's guide
Git Introduction
Git 101 - Crash Course in Version Control using Git
Git: A Getting Started Presentation
Intro To Git
Git Version Control System
A brief introduction to version control systems
Git vs svn
Git Tutorial 教學
Git and GitHub for Documentation
Git vs SVN
DeveloperWeek 2015: A Practical Introduction to Docker
Learning git
Tech thursdays / GIT
Version control with GIT
Hybrid Clouds: EC2/Heroku Calculator
Git vs Subversion: ¿Cuando elegir uno u otro?
JAZOON'13 - Bartosz Majsak - Git Workshop - Kung Fu
Ad

Similar to Git Presentation (20)

PPTX
Git 101
PDF
Git in Eclipse
PPT
Git training
PPTX
Git more done
PPTX
Introduction to Git and Github
PPT
Git presentation
ODP
Introduction to Git
PDF
GIT_training_SoftServeBulgaria2016
PPT
Introduction to git
PPTX
Git workshop 33degree 2011 krakow
PPTX
Mini-training: Let’s Git It!
PPTX
Git hub_pptx
PPTX
Git Basics for Software Version Management
PPTX
Introduction to git
PPTX
Git.From thorns to the stars
PPTX
Getting Started with Git: A Primer for SVN and TFS Users
PDF
Git collaboration
PPTX
Git Overview
PPTX
Git 101
Git in Eclipse
Git training
Git more done
Introduction to Git and Github
Git presentation
Introduction to Git
GIT_training_SoftServeBulgaria2016
Introduction to git
Git workshop 33degree 2011 krakow
Mini-training: Let’s Git It!
Git hub_pptx
Git Basics for Software Version Management
Introduction to git
Git.From thorns to the stars
Getting Started with Git: A Primer for SVN and TFS Users
Git collaboration
Git Overview

Recently uploaded (20)

PDF
Getting Started with Data Integration: FME Form 101
PPTX
1. Introduction to Computer Programming.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
A Presentation on Artificial Intelligence
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Electronic commerce courselecture one. Pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPT
Teaching material agriculture food technology
PDF
Encapsulation theory and applications.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
Big Data Technologies - Introduction.pptx
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
Getting Started with Data Integration: FME Form 101
1. Introduction to Computer Programming.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
A Presentation on Artificial Intelligence
Network Security Unit 5.pdf for BCA BBA.
The Rise and Fall of 3GPP – Time for a Sabbatical?
20250228 LYD VKU AI Blended-Learning.pptx
Electronic commerce courselecture one. Pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Teaching material agriculture food technology
Encapsulation theory and applications.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Big Data Technologies - Introduction.pptx
gpt5_lecture_notes_comprehensive_20250812015547.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Per capita expenditure prediction using model stacking based on satellite ima...
Spectral efficient network and resource selection model in 5G networks
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm

Git Presentation

  • 1. Git - Fast Version Control System Presentation By: Aseem Jain
  • 2. Agenda (apart from fun) • Visualize “GIT Vs SVN” • What is Delta Storage ? • GIT Work Flow • GIT Architecture • Branching • Merge and Rebase • Dictator Model • Getting GIT Remote Repository • Git Help • Demos
  • 3. Visualize SVN Vs GIT KEY POINTS : SVN is vulnerable to corruption SVN repository should have better backup plans SVN cannot work with low network speed. SVN consumes more space SVN is not scalable if your bases is of 1000s user SVN, if build is failed every one is stuck SVN, if central code is diluted all code fades out SVN, for collaboration code has to be checked in http://www.youtube.com/watch?v=ntTpM8hfl_E&feature=related
  • 4. What is Delta Storage ? Instead of saving or replacing entire file, only differences are saved and tracked.
  • 5. Svn is vulnerable Git portability – (Svn corruption problem) to corruption even when the OS or media is not changed. However the git can be ported on daily basis to different media without corruption, it is robust it will be up after 10 years. Animation – P 483 https://github.com/premaseem/precisionlms
  • 6. Git Architecture • Index – Stores information about current working directory and changes made to it • Object Database – Blobs (files) • Stored in .git/objects • Indexed by unique hash • All files are stored as blobs – Trees (directories) – Commits • One object for every commit • Contains hash of parent, name of author, time of commit, and hash of the current tree – Tags
  • 7. Git Workflow • Fetch or clone (create a copy of the remote repository) (compare to cvs check out) • Modify the files in the local branch • Stage the files (no cvs comparison) • Commit the files locally (no cvs comparison) • Push changes to remote repository (compare to cvs commit)
  • 8. Git Local repository add commit Object Working tree Index store (sand box) (cache) pull, push Other Repositories 8
  • 9. How Git object Database works Entire version history, branch data and content are hashed, compressed and stored locally to make it faster better and easy to share.
  • 10. Light weight(delta) Branching(context switching) No massive copying can be switched can be local/remote can be shared commit specific branch
  • 11. Instead of sticking to one central Multiple remote repository repository, git helps to deal with multiple remote repository Refer – p 188
  • 12. The workflow Dictator model demonstrated here solves the problem of multiple projects working on same codebase. Animation – P 483 https://github.com/premaseem/precisionlms
  • 13. Getting git remote Getting Git Remote Repository repository which is free. It has simple login, configuratio n than you get the remote location to open you code base to rest of the world for contribution. (Pizz application) Demo https://github.com/premaseem/precisionlms
  • 14. With SVN you are compelled to Git Merge and Rebase merge and some time gets frustrated to loose or rewrite what you were doing. Git will help you to rebase and continue without distraction Refer – p 213
  • 15. Blog link for details of git commands : http://premaseem.wordpress.com/2011/11/16/git-commans/ 152 Git Commands
  • 16. Blog link for details of git commands : http://premaseem.wordpress.com/2011/11/16/git-commans/ GIT – “GUI” Graphic User Interface
  • 17. Some GIT Disadvantages • Definite learning curve, especially for those used to centralized systems - Can sometimes seem overwhelming to learn  • Documentation mostly through man pages
  • 18. How to get help with git • Read That Fabulous Manual http://www.kernel.org/pub/software/scm/git/docs/user- manual.html • Books http://progit.org/book/ (free) • Online training: https://github.com/training/online • Git user groups online http://old.nabble.com/git-f12403.html • Git mailing lists git-users@googlegroups.com link: www.premaseem.com/git
  • 20. To download this presentation visit : www.premaseem.com/git