Slide 1

Slide 1 text

An introduction to By @PascalPrecht

Slide 2

Slide 2 text

git-scm.com

Slide 3

Slide 3 text

gitref.org

Slide 4

Slide 4 text

progit.org

Slide 5

Slide 5 text

O‘Reilly Book

Slide 6

Slide 6 text

@PascalPrecht

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

History?

Slide 9

Slide 9 text

 - LINUS TORVALD „I‘m an egotistical bastard, and I name all my projects after myself.“

Slide 10

Slide 10 text

    What is Git?

Slide 11

Slide 11 text

What is Git? •  VCS  (Version  Control  System)  

Slide 12

Slide 12 text

What is Git? •  VCS  (Version  Control  System)   •  Open  Source    

Slide 13

Slide 13 text

What is Git? •  VCS  (Version  Control  System)   •  Open  Source   •  Fully  Distributed  

Slide 14

Slide 14 text

What is Git? •  VCS  (Version  Control  System)   •  Open  Source   •  Fully  Distributed   •  Local    

Slide 15

Slide 15 text

Fast* * At least as fast as this squirrel!

Slide 16

Slide 16 text

Git is awesome.

Slide 17

Slide 17 text

    What makes it so awesome?

Slide 18

Slide 18 text

    Git basics

Slide 19

Slide 19 text

Centralized VCS

Slide 20

Slide 20 text

Distributed VCS

Slide 21

Slide 21 text

    Working offline

Slide 22

Slide 22 text

Working offline •  Performing  a  diff  

Slide 23

Slide 23 text

Working offline •  Performing  a  diff   •  Viewing  file  history  

Slide 24

Slide 24 text

Working offline •  Performing  a  diff   •  Viewing  file  history   •  CommiBng  changes  

Slide 25

Slide 25 text

Working offline •  Performing  a  diff   •  Viewing  file  history   •  CommiBng  changes   •  Merging  branches  

Slide 26

Slide 26 text

Working offline •  Performing  a  diff   •  Viewing  file  history   •  CommiBng  changes   •  Merging  branches   •  Obtaining  other  revisions  of  a  file  

Slide 27

Slide 27 text

Working offline •  Performing  a  diff   •  Viewing  file  history   •  CommiBng  changes   •  Merging  branches   •  Obtaining  other  revisions  of  a  file   •  Switching  branches  

Slide 28

Slide 28 text

    Snapshots, not patches!

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

    First Steps

Slide 34

Slide 34 text

    Demo

Slide 35

Slide 35 text

    Configuration

Slide 36

Slide 36 text

Configuration   •  git  config    -­‐-­‐global  user.name  ‘‘NAME‘‘   •  git  config  -­‐-­‐global  user.email  ‘‘EMAIL‘‘      

Slide 37

Slide 37 text

    git init

Slide 38

Slide 38 text

git init   •  Creates  a  new  repository  

Slide 39

Slide 39 text

    git clone

Slide 40

Slide 40 text

git clone   •  clones  an  exisMng  repository  (hNp,  ssh,  git  ...)  

Slide 41

Slide 41 text

Flow •  Init  /  clone   •  edit   •  add   •  status  /  diff   •  commit    

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

    Branching

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

    git branch testing

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

    git checkout testing

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

    Merging

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

No content

Slide 57

Slide 57 text

    Bare repositories

Slide 58

Slide 58 text

Bare repositories •  Not  a  working  directory   •  May  exist  on  the  same  maschine   •  push  /  pull  

Slide 59

Slide 59 text

    Demo

Slide 60

Slide 60 text

Can I haz? By @PascalPrecht

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

BOOM!   •  TwiNer:  @PascalPrecht   •  Blog:  hopelessart.com   •  GitHub:  github.com/PascalPrecht     •  Images:  hNp://progit.org