Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Git/GitHub: The basics and beyond

Git/GitHub: The basics and beyond

Git is a widely used software for software source control and versioning. This talk touches the basics and internals of Git, and also demonstrates how collaboration happens on GitHub

opara prosper

March 06, 2020
Tweet

More Decks by opara prosper

Other Decks in Technology

Transcript

  1. Git/GitHub
    The basics and Beyond

    View Slide

  2. What we will cover…
    ✓ Git basics, internals, workflow.
    ✓ GitHub basics, terminologies, workflow
    ✓ Collaborating using GitHub
    ✓ Question/Answer session

    View Slide

  3. PART ONE
    Git

    View Slide

  4. GIT BASIC
    Version Control
    GIT
    Version 1.0
    Version 2.0
    Version 3.0
    Distributed Version Control System
    No central data store
    Recording Changes to file(s)
    over time and recall this changes

    View Slide

  5. SNAPSHOT

    View Slide

  6. FILE STATE
    Committed State
    Staged State
    Modified State
    GIT BASIC

    View Slide

  7. WORKING DIRECTORY STAGING AREA
    .GIT DIRECTORY
    Stage changes
    commit changes
    checkout the project
    GIT BASIC

    View Slide

  8. GIT BASIC
    $ git init
    $ git add
    $ git commit –m “”
    Make modifications (additions/deletions)
    Staged files
    Snapshots
    $ git checkout –b
    $ git restore --staged
    $ git remote add origin
    $ git push –u origin master

    View Slide

  9. $ git clone
    $ git add
    $ git commit –m “”
    Make modifications (additions/deletions)
    Staged files
    Snapshots
    $ git checkout –b
    $ git restore --staged
    $ git push –u origin master
    GIT BASIC

    View Slide

  10. GIT INTERNAL
    .git
    directory
    objects
    hooks
    HEAD
    info
    logs
    refs
    config
    index

    View Slide

  11. GIT INTERNAL
    Git
    objects
    Blobs
    Tree
    Commit

    View Slide

  12. Enough Talk, Show Me

    View Slide

  13. PART TWO
    GitHub

    View Slide

  14. What is GitHub?

    View Slide

  15. Photo Credit: Carlo Gilmar (https://twitter.com/carlogilmar)

    View Slide

  16. REPOSITORY
    Container
    Code container

    View Slide

  17. GITHUB WORK FLOW
    Source: https://crunchify.com/how-to-fork-github-repository-create-pull-request-and-merge/

    View Slide

  18. Git/GitHub in Action

    View Slide

  19. Questions?

    View Slide