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

A0a828591dc59e0eafda0e8584fb5481?s=128

opara prosper

March 06, 2020
Tweet

Transcript

  1. Git/GitHub The basics and Beyond

  2. What we will cover… ✓ Git basics, internals, workflow. ✓

    GitHub basics, terminologies, workflow ✓ Collaborating using GitHub ✓ Question/Answer session
  3. PART ONE Git

  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
  5. SNAPSHOT

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

  7. WORKING DIRECTORY STAGING AREA .GIT DIRECTORY Stage changes commit changes

    checkout the project GIT BASIC
  8. GIT BASIC $ git init <repository name> $ git add

    <file> $ git commit –m “<commit message>” Make modifications (additions/deletions) Staged files Snapshots $ git checkout –b <feature branch name> $ git restore --staged <staged file name> $ git remote add origin <URL to remote repository> $ git push –u origin master
  9. $ git clone <URL to remote repository> $ git add

    <file> $ git commit –m “<commit message>” Make modifications (additions/deletions) Staged files Snapshots $ git checkout –b <feature branch name> $ git restore --staged <staged file name> $ git push –u origin master GIT BASIC
  10. GIT INTERNAL .git directory objects hooks HEAD info logs refs

    config index
  11. GIT INTERNAL Git objects Blobs Tree Commit

  12. Enough Talk, Show Me

  13. PART TWO GitHub

  14. What is GitHub?

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

  16. REPOSITORY Container Code container

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

  18. Git/GitHub in Action

  19. Questions?