SlideShare a Scribd company logo
GIT
                              git the basics right




                                  david krmpotić



Saturday, November 28, 2009
What is GIT?



                    • source control system
                    • distributed
                    • offline




Saturday, November 28, 2009
Git is not....




Saturday, November 28, 2009
Git is not....




Saturday, November 28, 2009
GIT vs SVN




Saturday, November 28, 2009
Basics




Saturday, November 28, 2009
Basics




Saturday, November 28, 2009
Basic Commands

                    • git init
                    • git clone
                    • git add + git commit
                    • git push
                    • git pull
                    • git log


Saturday, November 28, 2009
Git log




Saturday, November 28, 2009
Everything is local




Saturday, November 28, 2009
Staging Area (index)

                    • an intermediate step
                    • allows flexibility
                    • build commits the way you want




Saturday, November 28, 2009
Why is it better than X?
                    • cheap local branching
                    • everything is local
                    • fast
                    • small space
                    • staging area
                    • any workflow
                    • GitHub
                                              http://whygitisbetterthanx.com
Saturday, November 28, 2009
Branching

                    • git branch develop
                    • git merge develop




Saturday, November 28, 2009
FAST




Saturday, November 28, 2009
Time to Take The Time!



                    • if you want to go faster,
                      stop and learn GIT




Saturday, November 28, 2009
Source Control
                                 Taxonomy




Saturday, November 28, 2009
DAG (no deltas)




Saturday, November 28, 2009
Source Control
                                 Taxonomy




Saturday, November 28, 2009
Workflow




                               svn style
Saturday, November 28, 2009
Integration Manager
                                   Workflow




Saturday, November 28, 2009
Dictator and
                     Lieutenants Workflow




                              Linux kernel development
Saturday, November 28, 2009
Object Database


                    • blob
                    • tree
                    • commit
                    • (tag)



Saturday, November 28, 2009
SHA

                    • Each object is identified by a SHA-1
                      hash of its contents




Saturday, November 28, 2009
Blob




Saturday, November 28, 2009
Tree




Saturday, November 28, 2009
Commit




Saturday, November 28, 2009
Saturday, November 28, 2009
Immutable objects




Saturday, November 28, 2009
Repository Internals




Saturday, November 28, 2009
Branching commands


                    • git branch
                    • git checkout
                    • git merge
                    • git rebase



Saturday, November 28, 2009
Remotes




                                        = remote branch
                                        They take the form (remote)/(branch).
                                        For instance, if you wanted to see
                                        what the master branch on your origin
                                        remote looked like as of the last time
                                        you communicated with it, you would
                                        check the origin/master branch.




Saturday, November 28, 2009
Tools




Saturday, November 28, 2009
Resources

              • gitready.com
              • O’Reilly: Version Control with Git
              • PeepCode: Git
              • whygitisbetterthanx.com
              • gitcasts.com/git-talk
              • progit.org
              • david@strelovod.com
Saturday, November 28, 2009

More Related Content

PPTX
PDF
Intro to Git
PPTX
Introduction to Git and Github
PDF
Why Git
PPT
Git presentation
PPTX
Git Presentation
PPTX
Git.From thorns to the stars
Intro to Git
Introduction to Git and Github
Why Git
Git presentation
Git Presentation
Git.From thorns to the stars

Similar to David Krmpotic: Git (20)

PDF
Git in Eclipse
PDF
Git basics with notes
PPTX
Git’in Jiggy With Git
PDF
Intro to Gitflow
PPTX
Roslyn on GitHub
ODP
Introduction to Git
PDF
Git tutorial
PDF
Git in 5 Minutes
PPTX
Git more done
PDF
Introduction to git
PPT
Git, Fast and Distributed Source Code Management
PDF
Intro To Git
PPT
PDF
Introduction to Git
ODP
Git: be social
PPT
Introduction to Git
PPTX
Git presentation
PPT
Effective Git with Eclipse
PPTX
Source control - what you need to know
PDF
Beginning git
Git in Eclipse
Git basics with notes
Git’in Jiggy With Git
Intro to Gitflow
Roslyn on GitHub
Introduction to Git
Git tutorial
Git in 5 Minutes
Git more done
Introduction to git
Git, Fast and Distributed Source Code Management
Intro To Git
Introduction to Git
Git: be social
Introduction to Git
Git presentation
Effective Git with Eclipse
Source control - what you need to know
Beginning git
Ad

Recently uploaded (20)

PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Cell Types and Its function , kingdom of life
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
GDM (1) (1).pptx small presentation for students
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
master seminar digital applications in india
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Complications of Minimal Access Surgery at WLH
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Computing-Curriculum for Schools in Ghana
PDF
Sports Quiz easy sports quiz sports quiz
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
01-Introduction-to-Information-Management.pdf
Microbial disease of the cardiovascular and lymphatic systems
Cell Types and Its function , kingdom of life
Final Presentation General Medicine 03-08-2024.pptx
GDM (1) (1).pptx small presentation for students
O5-L3 Freight Transport Ops (International) V1.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
master seminar digital applications in india
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Complications of Minimal Access Surgery at WLH
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Computing-Curriculum for Schools in Ghana
Sports Quiz easy sports quiz sports quiz
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
O7-L3 Supply Chain Operations - ICLT Program
01-Introduction-to-Information-Management.pdf
Ad

David Krmpotic: Git