SlideShare a Scribd company logo
Git:
             A Getting Started presentation


       by: Nap Ramirez
    email: napramirez@gmail.com
                                   
INTRODUCTION


    What is Git?

    Git is a distributed version control
    system (DVCS).

    Version control systems keep track of
    the changes in files and directories
    over time.

     ● records the history of data
     ● acts like a time machine of data



                         
INTRODUCTION


    Architecture
    Git is a
    distributed system,
    everyone has their
    own copy of the
    source codes.




                           
GETTING USED TO...


    Terminology
    Repository
        ●   a storage of the history of changes of the
            tracked files, hidden from the user

    Working Copy
        ●   the set of tracked files

    Revision
        ●   a specific state of data recorded in the
            history



                                 
GETTING USED TO...


    Terminology                 (continued)

    Branch
        ●   a separate line of history of the tracked
            files deviating from the origin or another
            branch

    Tag
        ●   a reference to a specific state of a branch




                                 
LEARNING...


    Basic Operations
      Clone Remote Repository (git clone)
         ●   acquire a copy of a repository
         ●   `$ git clone git@git.mydomain.com:myproject.git`

      Pull Updates From Repository (git pull)
         ●   get updates from another repository and
             apply those into your repository
         ●   `$ git pull origin master`

      Pushing Changes To Repository (git push)
         ●   send changes in your repository to another
             repository
         ●   `$ git push remote master`

                                  
LEARNING...


    Basic Operations                         (continued)

      Create Branches (git branch <name>)
         ●   creates a local branch based from the active
             branch
         ●   `$ git branch feature1`
      Switch Branch (git checkout <name>)
         ●   switches active branch to any existing one
         ●   `$ git checkout -b feature1`
      Merging Branches (git merge)
         ●   apply changes from specified branch
         ●   `$ git merge feature1`
      Perform/Apply Changes (git commit, git add)
         ●   mark changes in history of active branch
         ●   `$ git commit -am “changed the button label”`
         ●   `$ git add README.txt`
                                  
LEARNING...


    Feature-based Workflow
    1. Pull from remote master into local master (in
    master, git pull)
    2. Rebase local branch to changes from master (in
    local branch, git rebase master)
    3. Perform changes, then commit to local branch
    (in local branch, git commit)
    4. Merge to local master (in local master, git
    merge <local-branch-name>)
    5. Push changes (in local master, git push)
                            
Let's put it to the test!


    Exercise
    Practice the Feature-based Workflow.

    Create tags, use gitk and the stash.




                                 
THE END...


    Thanks!
    Please mail me your feedback!




    ----------------------------
    Nap Ramirez
    napramirez@gmail.com
                        
This work is licensed under the Creative Commons
    Attribution 3.0 License. To view a copy of this
    license, visit
    http://creativecommons.org/licenses/by/3.0/ or send a
    letter to Creative Commons, 171 Second Street, Suite
    300, San Francisco, California, 94105, USA.
                                

More Related Content

PPTX
Git Presentation
PPTX
Introduction to Git and Github
PPTX
Introduction git
PPT
Git Introduction
PDF
Mini git tutorial
PDF
Git & GitHub for Beginners
PDF
Introduction to Git, DrupalCamp LA 2015
PPTX
Introduction to git administration
Git Presentation
Introduction to Git and Github
Introduction git
Git Introduction
Mini git tutorial
Git & GitHub for Beginners
Introduction to Git, DrupalCamp LA 2015
Introduction to git administration

What's hot (20)

PDF
Git & Github for beginners
ZIP
Introduction to Git
PDF
Git 101 tutorial presentation
PDF
Git basics
PDF
Advanced Git Tutorial
PDF
Git and Github workshop
PDF
Git Version Control System
PPTX
Git One Day Training Notes
PDF
Git tutorial
PDF
Git Introduction Tutorial
PDF
Starting with Git & GitHub
PDF
Brief tutorial on Git
KEY
The everyday developer's guide to version control with Git
PPTX
GIT presentation
PDF
Git in Eclipse
PDF
Github - Git Training Slides: Foundations
PPTX
Github basics
PDF
Git Tutorial I
PDF
Git and Github
KEY
Helios in Action: Git at Eclipse
Git & Github for beginners
Introduction to Git
Git 101 tutorial presentation
Git basics
Advanced Git Tutorial
Git and Github workshop
Git Version Control System
Git One Day Training Notes
Git tutorial
Git Introduction Tutorial
Starting with Git & GitHub
Brief tutorial on Git
The everyday developer's guide to version control with Git
GIT presentation
Git in Eclipse
Github - Git Training Slides: Foundations
Github basics
Git Tutorial I
Git and Github
Helios in Action: Git at Eclipse
Ad

Viewers also liked (20)

PDF
Introduction to git
PDF
Quick Introduction to git
PDF
Git 101: Git and GitHub for Beginners
PPTX
Basic Git Intro
PDF
SVN 2 Git
ODP
Git vs svn
KEY
Introduction to Git
PPTX
Introduction to Git/Github - A beginner's guide
PPT
Git vs SVN
PDF
Getting Started on distributed version control with git
PDF
GIT Introduction
PPTX
Getting Started with Git: A Primer for SVN and TFS Users
PDF
Git et les systèmes de gestion de versions
PDF
Training: Day Two - Eclipse, Git, Maven
PPTX
Why we ditched TFS and embraced Git, Github, TeamCity and Myget
PPTX
Git vs svn
PPTX
Lets git to it
PPTX
From svn to git
KEY
Git Tech Talk
PDF
Découvrir et utiliser Git : le logiciel de gestion de versions décentralisé
Introduction to git
Quick Introduction to git
Git 101: Git and GitHub for Beginners
Basic Git Intro
SVN 2 Git
Git vs svn
Introduction to Git
Introduction to Git/Github - A beginner's guide
Git vs SVN
Getting Started on distributed version control with git
GIT Introduction
Getting Started with Git: A Primer for SVN and TFS Users
Git et les systèmes de gestion de versions
Training: Day Two - Eclipse, Git, Maven
Why we ditched TFS and embraced Git, Github, TeamCity and Myget
Git vs svn
Lets git to it
From svn to git
Git Tech Talk
Découvrir et utiliser Git : le logiciel de gestion de versions décentralisé
Ad

Similar to Git: A Getting Started Presentation (20)

PPT
Git basic
ODP
The Fundamentals of Git
PPTX
Hacktoberfest intro to Git and GitHub
PPT
390a gitintro 12au
PDF
Git in a nutshell
PDF
Improving your workflow with git
PPTX
Understanding about git
PPTX
Session git
PPTX
sample.pptx
PDF
Git training v10
PPTX
Git and Github workshop GDSC MLRITM
PPTX
Git training (basic)
PPTX
Git Basics for Software Version Management
PDF
What the Git? - WordCamp Atlanta
PDF
PDF
Git 入门与实践
PDF
Fall18 Git presentation
PDF
Git 入门 与 实践
PDF
Git training
Git basic
The Fundamentals of Git
Hacktoberfest intro to Git and GitHub
390a gitintro 12au
Git in a nutshell
Improving your workflow with git
Understanding about git
Session git
sample.pptx
Git training v10
Git and Github workshop GDSC MLRITM
Git training (basic)
Git Basics for Software Version Management
What the Git? - WordCamp Atlanta
Git 入门与实践
Fall18 Git presentation
Git 入门 与 实践
Git training

Recently uploaded (20)

PPTX
MYSQL Presentation for SQL database connectivity
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Encapsulation theory and applications.pdf
PDF
Approach and Philosophy of On baking technology
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
Empathic Computing: Creating Shared Understanding
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Machine learning based COVID-19 study performance prediction
PDF
Getting Started with Data Integration: FME Form 101
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Electronic commerce courselecture one. Pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Assigned Numbers - 2025 - Bluetooth® Document
MYSQL Presentation for SQL database connectivity
The Rise and Fall of 3GPP – Time for a Sabbatical?
Encapsulation theory and applications.pdf
Approach and Philosophy of On baking technology
MIND Revenue Release Quarter 2 2025 Press Release
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Spectroscopy.pptx food analysis technology
Empathic Computing: Creating Shared Understanding
Dropbox Q2 2025 Financial Results & Investor Presentation
Encapsulation_ Review paper, used for researhc scholars
Machine learning based COVID-19 study performance prediction
Getting Started with Data Integration: FME Form 101
Reach Out and Touch Someone: Haptics and Empathic Computing
Electronic commerce courselecture one. Pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Group 1 Presentation -Planning and Decision Making .pptx
Network Security Unit 5.pdf for BCA BBA.
Assigned Numbers - 2025 - Bluetooth® Document

Git: A Getting Started Presentation

  • 1. Git: A Getting Started presentation by: Nap Ramirez email: napramirez@gmail.com    
  • 2. INTRODUCTION What is Git? Git is a distributed version control system (DVCS). Version control systems keep track of the changes in files and directories over time. ● records the history of data ● acts like a time machine of data    
  • 3. INTRODUCTION Architecture Git is a distributed system, everyone has their own copy of the source codes.    
  • 4. GETTING USED TO... Terminology Repository ● a storage of the history of changes of the tracked files, hidden from the user Working Copy ● the set of tracked files Revision ● a specific state of data recorded in the history    
  • 5. GETTING USED TO... Terminology (continued) Branch ● a separate line of history of the tracked files deviating from the origin or another branch Tag ● a reference to a specific state of a branch    
  • 6. LEARNING... Basic Operations Clone Remote Repository (git clone) ● acquire a copy of a repository ● `$ git clone git@git.mydomain.com:myproject.git` Pull Updates From Repository (git pull) ● get updates from another repository and apply those into your repository ● `$ git pull origin master` Pushing Changes To Repository (git push) ● send changes in your repository to another repository ● `$ git push remote master`    
  • 7. LEARNING... Basic Operations (continued) Create Branches (git branch <name>) ● creates a local branch based from the active branch ● `$ git branch feature1` Switch Branch (git checkout <name>) ● switches active branch to any existing one ● `$ git checkout -b feature1` Merging Branches (git merge) ● apply changes from specified branch ● `$ git merge feature1` Perform/Apply Changes (git commit, git add) ● mark changes in history of active branch ● `$ git commit -am “changed the button label”` ● `$ git add README.txt`    
  • 8. LEARNING... Feature-based Workflow 1. Pull from remote master into local master (in master, git pull) 2. Rebase local branch to changes from master (in local branch, git rebase master) 3. Perform changes, then commit to local branch (in local branch, git commit) 4. Merge to local master (in local master, git merge <local-branch-name>) 5. Push changes (in local master, git push)    
  • 9. Let's put it to the test! Exercise Practice the Feature-based Workflow. Create tags, use gitk and the stash.    
  • 10. THE END... Thanks! Please mail me your feedback! ---------------------------- Nap Ramirez napramirez@gmail.com    
  • 11. This work is licensed under the Creative Commons Attribution 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.