Links this: //nasinf001/abajric/git-doc.git Demo: - - PowerPoint PPT Presentation

links
SMART_READER_LITE
LIVE PREVIEW

Links this: //nasinf001/abajric/git-doc.git Demo: - - PowerPoint PPT Presentation

Links this: //nasinf001/abajric/git-doc.git Demo: //nasinf001/abajric/git-demo.git Pro Git: http://git-scm.com/book/ Branching Model: http://nvie.com/posts/a-successful-git-branching-mod el/ Tutorial:


slide-1
SLIDE 1

Links

  • this: //nasinf001/abajric/git-doc.git
  • Demo: //nasinf001/abajric/git-demo.git
  • Pro Git: http://git-scm.com/book/
  • Branching Model:

http://nvie.com/posts/a-successful-git-branching-mod el/

  • Tutorial: https://www.atlassian.com/git/tutorial
slide-2
SLIDE 2

Vorteile gegenüber SVN

  • Verteilt
  • Schnell
  • Branch/merge einfacher
  • Non-linear History
  • workflow
  • simple
slide-3
SLIDE 3

Nachteile gegenüber SVN

  • komplexer
  • Repositories sind grösser (nicht immer z.B. Mozilla)
  • Kein Checkout von Unterordnern
  • Kein Access Control
  • Schlechterer GUI support
  • Binäre Dateien (Grösse, history split)
slide-4
SLIDE 4

basics - distributed

centralized distributed

slide-5
SLIDE 5

basics

  • Snapshots, Not Differences
  • Hash
  • fast alles wird local ausgeführt
  • Daten werden nur hinzugefügt (GC 30 Tage)
  • Username / E-Mail
slide-6
SLIDE 6

basics - database

SVN git

slide-7
SLIDE 7

basics - stagin

slide-8
SLIDE 8

basics – status lifecycle

slide-9
SLIDE 9

basics - commits

.git README LICENSE test.rb

slide-10
SLIDE 10

basics - commits

slide-11
SLIDE 11

branches – pointer

slide-12
SLIDE 12

branches - new

git branch testing

slide-13
SLIDE 13

branches - new

slide-14
SLIDE 14

branches - checkout

git checkout testing

slide-15
SLIDE 15

branches - divergence

slide-16
SLIDE 16

branches - divergence

git checkout master

slide-17
SLIDE 17

branches - divergence

slide-18
SLIDE 18

branches - why

slide-19
SLIDE 19

branches - why

slide-20
SLIDE 20

branches - why

slide-21
SLIDE 21

branches - why

slide-22
SLIDE 22

branches - why

slide-23
SLIDE 23

branches – long-running

slide-24
SLIDE 24

branches - topic

slide-25
SLIDE 25

remotes - clone

slide-26
SLIDE 26

remotes - divergence

slide-27
SLIDE 27

remotes - fetch

slide-28
SLIDE 28

remotes - divergence

slide-29
SLIDE 29

remotes - fetch

slide-30
SLIDE 30

rebase – no-ff merge

slide-31
SLIDE 31

rebase - linearization

slide-32
SLIDE 32

rebase - example

slide-33
SLIDE 33

rebase - example

slide-34
SLIDE 34

rebase - example

slide-35
SLIDE 35

rebase - example

slide-36
SLIDE 36

rebase – rewrite history

initial commit readme file added bug fixed new feature A added new feature B added fixup feature A master develop initial commit readme file added bug fixed new feature A added fixup feature A new feature B added master develop

slide-37
SLIDE 37

rebase – rewrite history

initial commit readme file added bug fixed new feature A added fixup feature A new feature B added master develop initial commit readme file added bug fixed new feature A added new feature B added new feature C added master develop

slide-38
SLIDE 38

workflow - centralized

slide-39
SLIDE 39

workflow – integration manager

slide-40
SLIDE 40

workflow – dictator / lieutenants

slide-41
SLIDE 41

gitflow – main branches

slide-42
SLIDE 42

gitflow – support branches

slide-43
SLIDE 43

gitflow – fast forward

slide-44
SLIDE 44

gitflow – release

slide-45
SLIDE 45

gitflow – hotfix

slide-46
SLIDE 46

gitflow – hotfix