Git beyond push and pull

https://git-man-page-generator.lokaltog.net/

Git

  • Distributed version control system
    • Whole history of the branch
  • Just a binary to read local files
    • .git folder
    • no server
  • Porcelain and plumbing commands

Hosted git

 

It's not Github or Bitbucket

  • Visualisation
  • Cloud storage/Backups
  • Pull requests
  • Fork
  • User permission (**)

Git bare demo

(00)

Git authentication demo

(01)

Git anatomy

 

  • Commit is the first class citizen
    • Parent(s) (0-N)
      • orphan commit
      • merge commit
    • Delta
    • Unique Commit hash
  • Only files, folders not included
    • file permission
    • case sensitive (***)

Commit demo

(02)

Branches and tags

 

 

  • Branches and tags are just alias to a commit hash
    • HEAD / HEAD~1
    • <commit-hash>~1
  • Branch history - all ancestors
    • Garbage collector
  • Upstream, Origin

Branches and tags

Branches demo

(03, 04, 05)

Remote branches

(06,07,08)

Moar commands

  • commit --amend
  • rebase -i
  • filter
  • bisect
  • grep
  • reflog

Git beyond push and pull

By Cintia Del Rio

Git beyond push and pull

  • 246