SlideShare a Scribd company logo
Git
from Novice to Expert


         goddyzhao<goddy128@gmail.com>
Git
      to Expert


        goddyzhao<goddy128@gmail.com>
Abstract
Abstract

★ Part I > Git Basic
Abstract

★ Part I > Git Basic

★ Part II > Git Internals
Git Basic


Git vs SVN
Git Basic


Git
Git Basic

Don’t think of it in a ‘like (insert
favorite SCM system), but...’
context, but more like a really
interesting file system!

                                by Linus
Git Internals
Git Internals
• >git init
Git Internals
• >git init
• >git add
Git Internals
• >git init
• >git add
• >git commit
Git Internals
• >git init
• >git add
• >git commit
• >git branch
Git Internals
• >git init     • >git tag
• >git add
• >git commit
• >git branch
Git Internals
• >git init     • >git tag
• >git add      • >git merge
• >git commit
• >git branch
Git Internals
• >git init     • >git tag
• >git add      • >git merge
• >git commit   • >git rebase
• >git branch
Git Internals
• >git init     • >git tag
• >git add      • >git merge
• >git commit   • >git rebase
• >git branch   • >git ...
How to Use
    These Git Commands
✓ to Use
How
    These Git Commands
How
 These Git Commands

             Works
How
 These Git Commands

             Works
                      ?
Before That
Soul
Git
Git Object
Git Object
• {Blob}
Git Object
• {Blob}
• {Tree}
Git Object
• {Blob}
• {Tree}
• {Commit}
Git Object
• {Blob}
• {Tree}
• {Commit}
• {Tag}
Git Object
• {Blob}
• {Tree}     imm
• {Commit}
                 uta
                       ble
• {Tag}
{Blob}
{Blob}
{Blob}
         +
{Blob}
         +   Header
{Blob}
         +   Header
{Blob}
         +   Header
{Blob}
         +   Header
{Blob}
         +   Header
{Blob}
File Content            +   Header
{Blob}
File Content +            +   Header
{Blob}
File Content + Header      +   Header
{Blob}
File Content + Header      +   Header
{Blob}
File Content + Header      +   Header




         SHA-1
{Blob}
File Content + Header      +   Header




         SHA-1
{Blob}
File Content + Header          +   Header




         SHA-1



       Zlib::Deflate
{Blob}
File Content + Header




         SHA-1



       Zlib::Deflate
{Blob}
File Content + Header




         SHA-1



       Zlib::Deflate
{Blob}
File Content + Header




         SHA-1



       Zlib::Deflate
{Blob}
File Content + Header




         SHA-1



       Zlib::Deflate
{Blob}
File Content + Header




         SHA-1          SHA-1: abd9...9



       Zlib::Deflate
{Blob}
File Content + Header




         SHA-1          SHA-1: abd9...9



       Zlib::Deflate
{Blob}
File Content + Header




         SHA-1          SHA-1: abd9...9



       Zlib::Deflate
{Blob}
File Content + Header




         SHA-1          SHA-1: abd9...9



       Zlib::Deflate
{Blob}
File Content + Header




         SHA-1          SHA-1: abd9...9

                           objects/ab
       Zlib::Deflate
{Blob}
File Content + Header




         SHA-1          SHA-1: abd9...9

                           objects/ab
       Zlib::Deflate
{Blob}
File Content + Header




         SHA-1          SHA-1: abd9...9

                           objects/ab
       Zlib::Deflate
                                          d9...9
{Tree}
{Tree}
{Tree}
{Commit}
{Commit}
{Commit}
{Tag}
{Tag}

Reference to Specific Commit
{Tag}

Reference to Specific Commit
Relationships
Relationships
Example
Example
Example
Example
Example
Change base_include.rb
Example
Change base_include.rb
Example
Example
Change init.rb
Example
Change init.rb
Branching & Merging
Branching & Merging
Branching & Merging
Branching & Merging
Branching & Merging
Create a branch
Branching & Merging
Create a branch
Branching & Merging
Branching & Merging

Switch to another branch
Branching & Merging

Switch to another branch
Branching & Merging
Branching & Merging

Merge one branch into another
Branching & Merging

Merge one branch into another
Remote
Remote
Remote
Remote
Remote
Git + SVN
Thanks!

More Related Content

What's hot (20)

PPTX
Github
JaneAlamAdnan
 
PPTX
Git - Basic Crash Course
Nilay Binjola
 
PDF
Git tutorial II
Jim Yeh
 
PDF
Git & GitHub for Beginners
Sébastien Saunier
 
PPTX
Git learning
Amit Gupta
 
ODP
The Fundamentals of Git
DivineOmega
 
PDF
Git for beginners
Arulmurugan Rajaraman
 
PDF
Git training v10
Skander Hamza
 
PPTX
Git commands
Viyaan Jhiingade
 
PPT
Git basic
Emran Ul Hadi
 
PDF
Git introduction workshop for scientists
Steven Hamblin
 
PPTX
Git basics
Denys Haryachyy
 
PDF
Git Tutorial I
Jim Yeh
 
PPTX
01 - Git vs SVN
Edward Goikhman
 
PPTX
Introduction To Git Workshop
themystic_ca
 
PPTX
Git Obstacle Course: Stop BASHing your head and break down the basics
Chris Bohatka
 
PPTX
An introduction to Git
Muhil Vannan
 
DOCX
Git github
Anurag Deb
 
PDF
Git-ing out of your git messes - Fluent Conf 2017
Katie Sylor-Miller
 
PDF
Git tutorial
mobaires
 
Git - Basic Crash Course
Nilay Binjola
 
Git tutorial II
Jim Yeh
 
Git & GitHub for Beginners
Sébastien Saunier
 
Git learning
Amit Gupta
 
The Fundamentals of Git
DivineOmega
 
Git for beginners
Arulmurugan Rajaraman
 
Git training v10
Skander Hamza
 
Git commands
Viyaan Jhiingade
 
Git basic
Emran Ul Hadi
 
Git introduction workshop for scientists
Steven Hamblin
 
Git basics
Denys Haryachyy
 
Git Tutorial I
Jim Yeh
 
01 - Git vs SVN
Edward Goikhman
 
Introduction To Git Workshop
themystic_ca
 
Git Obstacle Course: Stop BASHing your head and break down the basics
Chris Bohatka
 
An introduction to Git
Muhil Vannan
 
Git github
Anurag Deb
 
Git-ing out of your git messes - Fluent Conf 2017
Katie Sylor-Miller
 
Git tutorial
mobaires
 

Similar to Git: from Novice to Expert (20)

PDF
Embedded Systems: Lecture 11: Introduction to Git & GitHub (Part 2)
Ahmed El-Arabawy
 
PDF
Git basics with notes
Surabhi Gupta
 
PDF
Dive into .git
nishio
 
PDF
Git Real
Gong Haibing
 
PPTX
Six3 Getting Git
Daniel Cox
 
PPTX
Git
aneyzberg
 
PPTX
Gitlikeapro 2019
Jesús Miguel Benito Calzada
 
PPTX
Git and GitHub
태환 김
 
PDF
Advanced git
satya sudheer
 
PDF
Git Is A State Of Mind - The path to becoming a Master of the mystic art of Git
Nicola Costantino
 
PPT
Git, Fast and Distributed Source Code Management
Salimane Adjao Moustapha
 
PPTX
Git and github introduction
John(Qiang) Zhang
 
PPTX
Git basic
Akbar Uddin
 
PPTX
11 git version control
Wasim Alatrash
 
PDF
That's (g)it! par Sébastien Dawans CETIC
La FeWeb
 
PPTX
Git session Dropsolid.com
dropsolid
 
PPTX
Demystifying git
Andrey Dyblenko
 
PPTX
Working with Git
Sanghoon Hong
 
PDF
Introduction to git, an efficient distributed version control system
AlbanLevy
 
PPTX
Git Basics for Software Version Management
ishanmittal49
 
Embedded Systems: Lecture 11: Introduction to Git & GitHub (Part 2)
Ahmed El-Arabawy
 
Git basics with notes
Surabhi Gupta
 
Dive into .git
nishio
 
Git Real
Gong Haibing
 
Six3 Getting Git
Daniel Cox
 
Git and GitHub
태환 김
 
Advanced git
satya sudheer
 
Git Is A State Of Mind - The path to becoming a Master of the mystic art of Git
Nicola Costantino
 
Git, Fast and Distributed Source Code Management
Salimane Adjao Moustapha
 
Git and github introduction
John(Qiang) Zhang
 
Git basic
Akbar Uddin
 
11 git version control
Wasim Alatrash
 
That's (g)it! par Sébastien Dawans CETIC
La FeWeb
 
Git session Dropsolid.com
dropsolid
 
Demystifying git
Andrey Dyblenko
 
Working with Git
Sanghoon Hong
 
Introduction to git, an efficient distributed version control system
AlbanLevy
 
Git Basics for Software Version Management
ishanmittal49
 
Ad

Recently uploaded (20)

PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Ad

Git: from Novice to Expert

Editor's Notes

  • #2: \n
  • #3: \n
  • #4: \n
  • #5: \n
  • #6: \n
  • #7: \n
  • #8: \n
  • #9: \n
  • #10: \n
  • #11: \n
  • #12: \n
  • #13: \n
  • #14: \n
  • #15: \n
  • #16: \n
  • #17: \n
  • #18: \n
  • #19: \n
  • #20: \n
  • #21: \n
  • #22: \n
  • #23: \n
  • #24: \n
  • #25: \n
  • #26: \n
  • #27: \n
  • #28: \n
  • #29: \n
  • #30: \n
  • #31: \n
  • #32: \n
  • #33: \n
  • #34: \n
  • #35: \n
  • #36: \n
  • #37: \n
  • #38: \n
  • #39: \n
  • #40: \n
  • #41: \n
  • #42: &amp;#x521D;&amp;#x59CB;&amp;#x5316;&amp;#x4E00;&amp;#x4E2A;git&amp;#x5DE5;&amp;#x7A0B;&amp;#xFF0C;&amp;#x968F;&amp;#x540E;&amp;#x65B0;&amp;#x589E;&amp;#x52A0;&amp;#x4E00;&amp;#x4E2A;&amp;#x6587;&amp;#x4EF6;&amp;#xFF0C;&amp;#x7136;&amp;#x540E;&amp;#x67E5;&amp;#x770B; refs/master -&gt; objects/\n
  • #43: &amp;#x521D;&amp;#x59CB;&amp;#x5316;&amp;#x4E00;&amp;#x4E2A;git&amp;#x5DE5;&amp;#x7A0B;&amp;#xFF0C;&amp;#x968F;&amp;#x540E;&amp;#x65B0;&amp;#x589E;&amp;#x52A0;&amp;#x4E00;&amp;#x4E2A;&amp;#x6587;&amp;#x4EF6;&amp;#xFF0C;&amp;#x7136;&amp;#x540E;&amp;#x67E5;&amp;#x770B; refs/master -&gt; objects/\n
  • #44: &amp;#x521D;&amp;#x59CB;&amp;#x5316;&amp;#x4E00;&amp;#x4E2A;git&amp;#x5DE5;&amp;#x7A0B;&amp;#xFF0C;&amp;#x968F;&amp;#x540E;&amp;#x65B0;&amp;#x589E;&amp;#x52A0;&amp;#x4E00;&amp;#x4E2A;&amp;#x6587;&amp;#x4EF6;&amp;#xFF0C;&amp;#x7136;&amp;#x540E;&amp;#x67E5;&amp;#x770B; refs/master -&gt; objects/\n
  • #45: &amp;#x521D;&amp;#x59CB;&amp;#x5316;&amp;#x4E00;&amp;#x4E2A;git&amp;#x5DE5;&amp;#x7A0B;&amp;#xFF0C;&amp;#x968F;&amp;#x540E;&amp;#x65B0;&amp;#x589E;&amp;#x52A0;&amp;#x4E00;&amp;#x4E2A;&amp;#x6587;&amp;#x4EF6;&amp;#xFF0C;&amp;#x7136;&amp;#x540E;&amp;#x67E5;&amp;#x770B; refs/master -&gt; objects/\n
  • #46: &amp;#x521D;&amp;#x59CB;&amp;#x5316;&amp;#x4E00;&amp;#x4E2A;git&amp;#x5DE5;&amp;#x7A0B;&amp;#xFF0C;&amp;#x968F;&amp;#x540E;&amp;#x65B0;&amp;#x589E;&amp;#x52A0;&amp;#x4E00;&amp;#x4E2A;&amp;#x6587;&amp;#x4EF6;&amp;#xFF0C;&amp;#x7136;&amp;#x540E;&amp;#x67E5;&amp;#x770B; refs/master -&gt; objects/\n
  • #47: &amp;#x521D;&amp;#x59CB;&amp;#x5316;&amp;#x4E00;&amp;#x4E2A;git&amp;#x5DE5;&amp;#x7A0B;&amp;#xFF0C;&amp;#x968F;&amp;#x540E;&amp;#x65B0;&amp;#x589E;&amp;#x52A0;&amp;#x4E00;&amp;#x4E2A;&amp;#x6587;&amp;#x4EF6;&amp;#xFF0C;&amp;#x7136;&amp;#x540E;&amp;#x67E5;&amp;#x770B; refs/master -&gt; objects/\n
  • #48: &amp;#x521D;&amp;#x59CB;&amp;#x5316;&amp;#x4E00;&amp;#x4E2A;git&amp;#x5DE5;&amp;#x7A0B;&amp;#xFF0C;&amp;#x968F;&amp;#x540E;&amp;#x65B0;&amp;#x589E;&amp;#x52A0;&amp;#x4E00;&amp;#x4E2A;&amp;#x6587;&amp;#x4EF6;&amp;#xFF0C;&amp;#x7136;&amp;#x540E;&amp;#x67E5;&amp;#x770B; refs/master -&gt; objects/\n
  • #49: &amp;#x521D;&amp;#x59CB;&amp;#x5316;&amp;#x4E00;&amp;#x4E2A;git&amp;#x5DE5;&amp;#x7A0B;&amp;#xFF0C;&amp;#x968F;&amp;#x540E;&amp;#x65B0;&amp;#x589E;&amp;#x52A0;&amp;#x4E00;&amp;#x4E2A;&amp;#x6587;&amp;#x4EF6;&amp;#xFF0C;&amp;#x7136;&amp;#x540E;&amp;#x67E5;&amp;#x770B; refs/master -&gt; objects/\n
  • #50: &amp;#x521D;&amp;#x59CB;&amp;#x5316;&amp;#x4E00;&amp;#x4E2A;git&amp;#x5DE5;&amp;#x7A0B;&amp;#xFF0C;&amp;#x968F;&amp;#x540E;&amp;#x65B0;&amp;#x589E;&amp;#x52A0;&amp;#x4E00;&amp;#x4E2A;&amp;#x6587;&amp;#x4EF6;&amp;#xFF0C;&amp;#x7136;&amp;#x540E;&amp;#x67E5;&amp;#x770B; refs/master -&gt; objects/\n
  • #51: &amp;#x521D;&amp;#x59CB;&amp;#x5316;&amp;#x4E00;&amp;#x4E2A;git&amp;#x5DE5;&amp;#x7A0B;&amp;#xFF0C;&amp;#x968F;&amp;#x540E;&amp;#x65B0;&amp;#x589E;&amp;#x52A0;&amp;#x4E00;&amp;#x4E2A;&amp;#x6587;&amp;#x4EF6;&amp;#xFF0C;&amp;#x7136;&amp;#x540E;&amp;#x67E5;&amp;#x770B; refs/master -&gt; objects/\n
  • #52: &amp;#x6F14;&amp;#x793A;&amp;#xFF1A;&amp;#x589E;&amp;#x52A0;&amp;#x4E00;&amp;#x4E2A;&amp;#x6587;&amp;#x4EF6;&amp;#x5939;&amp;#xFF0C;&amp;#x968F;&amp;#x540E;&amp;#x518D;&amp;#x589E;&amp;#x52A0;&amp;#x4E00;&amp;#x4E2A;&amp;#x6587;&amp;#x4EF6;&amp;#xFF0C;&amp;#x67E5;&amp;#x770B; objects\n
  • #53: &amp;#x6F14;&amp;#x793A;&amp;#xFF1A;&amp;#x589E;&amp;#x52A0;&amp;#x4E00;&amp;#x4E2A;&amp;#x6587;&amp;#x4EF6;&amp;#x5939;&amp;#xFF0C;&amp;#x968F;&amp;#x540E;&amp;#x518D;&amp;#x589E;&amp;#x52A0;&amp;#x4E00;&amp;#x4E2A;&amp;#x6587;&amp;#x4EF6;&amp;#xFF0C;&amp;#x67E5;&amp;#x770B; objects\n
  • #54: \n
  • #55: \n
  • #56: \n
  • #57: \n
  • #58: \n
  • #59: \n
  • #60: \n
  • #61: \n
  • #62: \n
  • #63: \n
  • #64: \n
  • #65: \n
  • #66: \n
  • #67: \n
  • #68: \n
  • #69: \n
  • #70: \n
  • #71: \n
  • #72: \n
  • #73: \n
  • #74: \n
  • #75: \n
  • #76: \n
  • #77: \n
  • #78: \n