Slide 1

Slide 1 text

Git/GitHub The basics and Beyond

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

PART ONE Git

Slide 4

Slide 4 text

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

Slide 5

Slide 5 text

SNAPSHOT

Slide 6

Slide 6 text

FILE STATE Committed State Staged State Modified State GIT BASIC

Slide 7

Slide 7 text

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

Slide 8

Slide 8 text

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

Slide 9

Slide 9 text

$ 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

Slide 10

Slide 10 text

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

Slide 11

Slide 11 text

GIT INTERNAL Git objects Blobs Tree Commit

Slide 12

Slide 12 text

Enough Talk, Show Me

Slide 13

Slide 13 text

PART TWO GitHub

Slide 14

Slide 14 text

What is GitHub?

Slide 15

Slide 15 text

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

Slide 16

Slide 16 text

REPOSITORY Container Code container

Slide 17

Slide 17 text

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

Slide 18

Slide 18 text

Git/GitHub in Action

Slide 19

Slide 19 text

Questions?