Hands on Git/Github

Who are we ?

Ivaylo Donchev

Martin Angelov

Who are we ? (v2)

What is Git?

  • "Open Source Distributed Version Control System"
  • Created by Linus Torvalds
  • It's an instrument that allows us to manage our code and  the history of its changes

Basic Git Terminology

  1. COMMIT
  2. HEAD
  3. BRANCH

How it works?

But first ... let's setup a REPO

What is GitHub?

  • Web service from where we can access Git repositories
  • Controlled access to repository by multiple people (contributors) with a nice UI over it
  • Gives us a lot more tools like PR-s, Wikis, etc.

DEMO TIME

  • add
  • commit
  • status
  • reset
  • checkout
  • log
  • reflog

Task

Merge vs Rebase

(it's all about updating the pointers)

DEMO -
merge and rebase

You may want to...

...change the history 

Setup time

  • SSH vs HTTPS
  • editor for committing
  • hooks
  • PR templates

Thank you !!!

Hands on Git/Github

By Hack Bulgaria

Hands on Git/Github

  • 1,041