SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Downloaden Sie, um offline zu lesen
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.
                                

Weitere ähnliche Inhalte

Was ist angesagt?

Git 101 tutorial presentation
Git 101 tutorial presentationGit 101 tutorial presentation
Git 101 tutorial presentation
Terry Wang
 

Was ist angesagt? (20)

Git & Github for beginners
Git & Github for beginnersGit & Github for beginners
Git & Github for beginners
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Git 101 tutorial presentation
Git 101 tutorial presentationGit 101 tutorial presentation
Git 101 tutorial presentation
 
Git basics
Git basicsGit basics
Git basics
 
Advanced Git Tutorial
Advanced Git TutorialAdvanced Git Tutorial
Advanced Git Tutorial
 
Git and Github workshop
Git and Github workshopGit and Github workshop
Git and Github workshop
 
Git Version Control System
Git Version Control SystemGit Version Control System
Git Version Control System
 
Git One Day Training Notes
Git One Day Training NotesGit One Day Training Notes
Git One Day Training Notes
 
Git tutorial
Git tutorialGit tutorial
Git tutorial
 
Git Introduction Tutorial
Git Introduction TutorialGit Introduction Tutorial
Git Introduction Tutorial
 
Starting with Git & GitHub
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHub
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git
 
The everyday developer's guide to version control with Git
The everyday developer's guide to version control with GitThe everyday developer's guide to version control with Git
The everyday developer's guide to version control with Git
 
GIT presentation
GIT presentationGIT presentation
GIT presentation
 
Git in Eclipse
Git in EclipseGit in Eclipse
Git in Eclipse
 
Github - Git Training Slides: Foundations
Github - Git Training Slides: FoundationsGithub - Git Training Slides: Foundations
Github - Git Training Slides: Foundations
 
Github basics
Github basicsGithub basics
Github basics
 
Git Tutorial I
Git Tutorial IGit Tutorial I
Git Tutorial I
 
Git and Github
Git and GithubGit and Github
Git and Github
 
Helios in Action: Git at Eclipse
Helios in Action: Git at EclipseHelios in Action: Git at Eclipse
Helios in Action: Git at Eclipse
 

Andere mochten auch

Quick Introduction to git
Quick Introduction to gitQuick Introduction to git
Quick Introduction to git
Joel Krebs
 
Git et les systèmes de gestion de versions
Git et les systèmes de gestion de versionsGit et les systèmes de gestion de versions
Git et les systèmes de gestion de versions
Alice Loeser
 

Andere mochten auch (20)

Introduction to git
Introduction to gitIntroduction to git
Introduction to git
 
Quick Introduction to git
Quick Introduction to gitQuick Introduction to git
Quick Introduction to git
 
Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners
 
Basic Git Intro
Basic Git IntroBasic Git Intro
Basic Git Intro
 
SVN 2 Git
SVN 2 GitSVN 2 Git
SVN 2 Git
 
Git vs svn
Git vs svnGit vs svn
Git vs svn
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Introduction to Git/Github - A beginner's guide
Introduction to Git/Github - A beginner's guideIntroduction to Git/Github - A beginner's guide
Introduction to Git/Github - A beginner's guide
 
Git vs SVN
Git vs SVNGit vs SVN
Git vs SVN
 
Getting Started on distributed version control with git
Getting Started on distributed version control with gitGetting Started on distributed version control with git
Getting Started on distributed version control with git
 
GIT Introduction
GIT IntroductionGIT Introduction
GIT Introduction
 
Getting Started with Git: A Primer for SVN and TFS Users
Getting Started with Git: A Primer for SVN and TFS UsersGetting Started with Git: A Primer for SVN and TFS Users
Getting Started with Git: A Primer for SVN and TFS Users
 
Git et les systèmes de gestion de versions
Git et les systèmes de gestion de versionsGit et les systèmes de gestion de versions
Git et les systèmes de gestion de versions
 
Training: Day Two - Eclipse, Git, Maven
Training: Day Two - Eclipse, Git, MavenTraining: Day Two - Eclipse, Git, Maven
Training: Day Two - Eclipse, Git, Maven
 
Why we ditched TFS and embraced Git, Github, TeamCity and Myget
Why we ditched TFS and embraced Git, Github, TeamCity and MygetWhy we ditched TFS and embraced Git, Github, TeamCity and Myget
Why we ditched TFS and embraced Git, Github, TeamCity and Myget
 
Git vs svn
Git vs svnGit vs svn
Git vs svn
 
Lets git to it
Lets git to itLets git to it
Lets git to it
 
From svn to git
From svn to gitFrom svn to git
From svn to git
 
Git Tech Talk
Git  Tech TalkGit  Tech Talk
Git Tech Talk
 
Découvrir et utiliser Git : le logiciel de gestion de versions décentralisé
Découvrir et utiliser Git : le logiciel de gestion de versions décentraliséDécouvrir et utiliser Git : le logiciel de gestion de versions décentralisé
Découvrir et utiliser Git : le logiciel de gestion de versions décentralisé
 

Ähnlich wie Git: A Getting Started Presentation

Git 入门与实践
Git 入门与实践Git 入门与实践
Git 入门与实践
Terry Wang
 
Git 入门 与 实践
Git 入门 与 实践Git 入门 与 实践
Git 入门 与 实践
Terry Wang
 

Ähnlich wie Git: A Getting Started Presentation (20)

Git basic
Git basicGit basic
Git basic
 
The Fundamentals of Git
The Fundamentals of GitThe Fundamentals of Git
The Fundamentals of Git
 
Hacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHubHacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHub
 
390a gitintro 12au
390a gitintro 12au390a gitintro 12au
390a gitintro 12au
 
Git in a nutshell
Git in a nutshellGit in a nutshell
Git in a nutshell
 
Improving your workflow with git
Improving your workflow with gitImproving your workflow with git
Improving your workflow with git
 
Understanding about git
Understanding about gitUnderstanding about git
Understanding about git
 
Session git
Session gitSession git
Session git
 
sample.pptx
sample.pptxsample.pptx
sample.pptx
 
Git training v10
Git training v10Git training v10
Git training v10
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
 
Git training (basic)
Git training (basic)Git training (basic)
Git training (basic)
 
What the Git? - WordCamp Atlanta
What the Git? - WordCamp AtlantaWhat the Git? - WordCamp Atlanta
What the Git? - WordCamp Atlanta
 
Git 入门与实践
Git 入门与实践Git 入门与实践
Git 入门与实践
 
Git
GitGit
Git
 
Fall18 Git presentation
Fall18 Git presentationFall18 Git presentation
Fall18 Git presentation
 
Git 入门 与 实践
Git 入门 与 实践Git 入门 与 实践
Git 入门 与 实践
 
Git training
Git trainingGit training
Git training
 
Git
GitGit
Git
 
GIT.pptx
GIT.pptxGIT.pptx
GIT.pptx
 

Kürzlich hochgeladen

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Kürzlich hochgeladen (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 

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.