SlideShare a Scribd company logo
Introduction to Git
About Git


• Version control
• Distributed
• Fast
Starting a repository


• init
  git init
• clone
  git clone <repo>
Adding files

• add
  git add -A
• commit
  git commit –am <message>
Branching
        time




A   A          C   D




    B          B
Branching

• branch
  git branch <branchname>
• checkout
  git checkout <branchname>
• merge
  git merge <branchname>
Remotes


                    remote
    Repo 1                      Repo 2
                     origin


Your local copy               drupal.org
                              github.com
Updating local


• fetch
  git fetch <remote>
• merge
  git merge <remote>/<branch>
Updating remote


• push
  git push <remote> <branch>
Other features

•   exporting
•   tagging
•   diff
•   submodules
ANY QUESTIONS?
   @Phill_Brown

More Related Content

What's hot (20)

PPTX
Git in 10 minutes
Safique Ahmed Faruque
 
PPTX
01 - Git vs SVN
Edward Goikhman
 
PPTX
Git 101 for Beginners
Anurag Upadhaya
 
PPT
Git basic
Emran Ul Hadi
 
PPTX
Gitting out of trouble
Jon Senchyna
 
PDF
Git Tutorial I
Jim Yeh
 
PDF
Git for beginners
Arulmurugan Rajaraman
 
PDF
Git basics
GHARSALLAH Mohamed
 
KEY
Git Tech Talk
Chris Johnson
 
PPTX
Git - Basic Crash Course
Nilay Binjola
 
PPTX
Git learning
Amit Gupta
 
PDF
Git training v10
Skander Hamza
 
PPTX
Luis atencio on_git
Luis Atencio
 
PPTX
Git and GitHub
Md. Ahsan Habib Nayan
 
PPTX
Git basics
Anthony Eli Agbenu
 
PDF
Git introduction workshop for scientists
Steven Hamblin
 
PPTX
Git basics
Denys Haryachyy
 
Git in 10 minutes
Safique Ahmed Faruque
 
01 - Git vs SVN
Edward Goikhman
 
Git 101 for Beginners
Anurag Upadhaya
 
Git basic
Emran Ul Hadi
 
Gitting out of trouble
Jon Senchyna
 
Git Tutorial I
Jim Yeh
 
Git for beginners
Arulmurugan Rajaraman
 
Git basics
GHARSALLAH Mohamed
 
Git Tech Talk
Chris Johnson
 
Git - Basic Crash Course
Nilay Binjola
 
Git learning
Amit Gupta
 
Git training v10
Skander Hamza
 
Luis atencio on_git
Luis Atencio
 
Git and GitHub
Md. Ahsan Habib Nayan
 
Git basics
Anthony Eli Agbenu
 
Git introduction workshop for scientists
Steven Hamblin
 
Git basics
Denys Haryachyy
 

Similar to Introduction to git (20)

PPTX
11 git version control
Wasim Alatrash
 
PPTX
Introduction to git and githhub with practicals.pptx
Abdul Salam
 
PPTX
Git One Day Training Notes
glen_a_smith
 
PPT
Git installation and configuration
Kishor Kumar
 
PPT
B4usolution git git-hub
b4usolution .
 
PDF
Git Version Control System
KMS Technology
 
PDF
Working with Git
Tony Hillerson
 
PPTX
Github basics
Radoslav Georgiev
 
PPTX
Git and Github workshop GDSC MLRITM
gdsc13
 
PPTX
Git presentation, Viktor Pyskunov
Viktor Pyskunov
 
KEY
Git isthenewsexy
Ailsa126
 
PPTX
Git first steps
IgorSteinmacher
 
PPTX
Learn Git - For Beginners and Intermediate levels
Gorav Singal
 
PPTX
Session git
Roni Saha
 
PDF
Fall18 Git presentation
JustinTirrell1
 
PDF
git and github
Darren Oakley
 
KEY
Gitting the Most From Git
Chris Miller
 
PPTX
Git basic stanley hsiao 2010_12_15
Chen-Han Hsiao
 
PPTX
Learning Basic GIT Cmd
srinathcox
 
ODP
Git: Git'ing the Basic
Gerald Villorente
 
11 git version control
Wasim Alatrash
 
Introduction to git and githhub with practicals.pptx
Abdul Salam
 
Git One Day Training Notes
glen_a_smith
 
Git installation and configuration
Kishor Kumar
 
B4usolution git git-hub
b4usolution .
 
Git Version Control System
KMS Technology
 
Working with Git
Tony Hillerson
 
Github basics
Radoslav Georgiev
 
Git and Github workshop GDSC MLRITM
gdsc13
 
Git presentation, Viktor Pyskunov
Viktor Pyskunov
 
Git isthenewsexy
Ailsa126
 
Git first steps
IgorSteinmacher
 
Learn Git - For Beginners and Intermediate levels
Gorav Singal
 
Session git
Roni Saha
 
Fall18 Git presentation
JustinTirrell1
 
git and github
Darren Oakley
 
Gitting the Most From Git
Chris Miller
 
Git basic stanley hsiao 2010_12_15
Chen-Han Hsiao
 
Learning Basic GIT Cmd
srinathcox
 
Git: Git'ing the Basic
Gerald Villorente
 
Ad

More from Phill Brown (7)

PDF
Drupal vs WordPress
Phill Brown
 
PDF
WordPress Workflows
Phill Brown
 
PDF
Building better WordPress applications
Phill Brown
 
PDF
PHP, Handle with care
Phill Brown
 
PDF
PHP Handlers
Phill Brown
 
PDF
Drupal feeds
Phill Brown
 
PDF
Drupal vs WordPress
Phill Brown
 
Drupal vs WordPress
Phill Brown
 
WordPress Workflows
Phill Brown
 
Building better WordPress applications
Phill Brown
 
PHP, Handle with care
Phill Brown
 
PHP Handlers
Phill Brown
 
Drupal feeds
Phill Brown
 
Drupal vs WordPress
Phill Brown
 
Ad

Recently uploaded (18)

PPTX
POL 100: Session 16 Political Culture.pptx
firahehsan
 
PPTX
CAVITE MUTINY GROUP PRESENTATION (HM).pptx
nimceilomay
 
PDF
Opher Bryer-Investor Deception Allegations Rock Impro.ai Co-Founder.pdf
nathaniel leonard
 
PDF
The Blogs_ Voting Against Ourselves _ Andy Blumenthal _ The Times of Israel.pdf
Andy (Avraham) Blumenthal
 
PPTX
SpaceX Dragon, Piloted by Shubhanshu Shukla, Makes Flawless Splashdown After ...
hepburnindia
 
DOCX
Euthanasia(1)-1.docxxxxxxxxxxxxxxxxxxxxxx
sowakaharshitafounda
 
PPTX
Digital_PR_and_Crisis_Management_Workshop.pptx
AashutoshKashyap4
 
PPTX
IntelligenceLine.com and Cybercriminals.com, and Critical Intel Ltd..pptx
nathaniel leonard
 
PDF
Το Δικαστήριο του Στρασβούργου ζητά εξηγήσεις για τους διορισμούς σε ΕΣΡ και ...
Newsroom8
 
PPTX
‘Just Asking Questions’: Doing Our Own Research on Conspiratorial Ideation by...
Axel Bruns
 
PPTX
MAKING OF INDIAN CONSTITUTION. grade 8 pptx
indranikosana1109
 
PDF
Don't forget about us health and care event slides.pdf
ResolutionFoundation
 
PDF
Pakistan–U.S. Relations: From Cold War Allies to Strategic Distrust (1947–202...
Aaryan Kansari
 
PDF
Bhupender Yadav Biography_ Life, Political Career & Achievements
VoterMood
 
PDF
History of India and Indian National Importance.pdf
kritikasrivastava687
 
PDF
Wolves-of-Via-Sarfatti-Berlingske ppt.pdf
gamermythic13
 
PPTX
Anil Agarwal’s Vision Building India’s Largest Natural Resources Empire.pptx
Vedanta Limited
 
PDF
Fact-checking and Social Media Verification in 2025 with Adut Angelina.pdf
The ClarityDesk
 
POL 100: Session 16 Political Culture.pptx
firahehsan
 
CAVITE MUTINY GROUP PRESENTATION (HM).pptx
nimceilomay
 
Opher Bryer-Investor Deception Allegations Rock Impro.ai Co-Founder.pdf
nathaniel leonard
 
The Blogs_ Voting Against Ourselves _ Andy Blumenthal _ The Times of Israel.pdf
Andy (Avraham) Blumenthal
 
SpaceX Dragon, Piloted by Shubhanshu Shukla, Makes Flawless Splashdown After ...
hepburnindia
 
Euthanasia(1)-1.docxxxxxxxxxxxxxxxxxxxxxx
sowakaharshitafounda
 
Digital_PR_and_Crisis_Management_Workshop.pptx
AashutoshKashyap4
 
IntelligenceLine.com and Cybercriminals.com, and Critical Intel Ltd..pptx
nathaniel leonard
 
Το Δικαστήριο του Στρασβούργου ζητά εξηγήσεις για τους διορισμούς σε ΕΣΡ και ...
Newsroom8
 
‘Just Asking Questions’: Doing Our Own Research on Conspiratorial Ideation by...
Axel Bruns
 
MAKING OF INDIAN CONSTITUTION. grade 8 pptx
indranikosana1109
 
Don't forget about us health and care event slides.pdf
ResolutionFoundation
 
Pakistan–U.S. Relations: From Cold War Allies to Strategic Distrust (1947–202...
Aaryan Kansari
 
Bhupender Yadav Biography_ Life, Political Career & Achievements
VoterMood
 
History of India and Indian National Importance.pdf
kritikasrivastava687
 
Wolves-of-Via-Sarfatti-Berlingske ppt.pdf
gamermythic13
 
Anil Agarwal’s Vision Building India’s Largest Natural Resources Empire.pptx
Vedanta Limited
 
Fact-checking and Social Media Verification in 2025 with Adut Angelina.pdf
The ClarityDesk
 

Introduction to git