Grokking Git by seeing it Enrico Campidoglio @ecampidoglio This - - PowerPoint PPT Presentation

grokking git by seeing it
SMART_READER_LITE
LIVE PREVIEW

Grokking Git by seeing it Enrico Campidoglio @ecampidoglio This - - PowerPoint PPT Presentation

Grokking Git by seeing it Enrico Campidoglio @ecampidoglio This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit


slide-1
SLIDE 1

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

Enrico Campidoglio

Grokking Git by seeing it

@ecampidoglio

slide-2
SLIDE 2

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

Agenda

What is Git and why should I care? Fundamentals The 5 Git mantras Enlightenment

slide-3
SLIDE 3

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

$> ¡Itʼs ¡all ¡command ¡line ¡-­‑-­‑son $> ¡but ¡that’s ¡how ¡it’s ¡supposed ¡to ¡be, $> ¡and ¡I ¡think ¡you’re ¡gonna ¡like ¡it.

slide-4
SLIDE 4

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

SeeGit

A realtime Git repository visualizer built in .NET

slide-5
SLIDE 5

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

Git is a distributed version control system, with an emphasis on speed and control. What is Git?

slide-6
SLIDE 6

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

Because Linus Torvalds needed an alternative to BitKeeper that was fast enough to handle the Linux Kernel codebase. Why?

slide-7
SLIDE 7

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

Centralized VCS

slide-8
SLIDE 8

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

Distributed VCS

slide-9
SLIDE 9

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
  • -the stupid content tracker
slide-10
SLIDE 10

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

tree blobs commit SHA

slide-11
SLIDE 11

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

Message Author Timestamp Commit SHA + +

Adds ¡a ¡new ¡feature John ¡Appleseed 2013-­‑01-­‑17 ¡13:37 2a5c7b8

Parent +

slide-12
SLIDE 12

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

History is a sequence of snapshots that represent the state of a directory through time. Git Mantra #1

slide-13
SLIDE 13

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

A commit represents a single unit of work. Git Mantra #2

slide-14
SLIDE 14

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

Branches are cheap. Use them at will. Git Mantra #3

slide-15
SLIDE 15

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

You write your own history. Git Mantra #4

slide-16
SLIDE 16

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

No repository is an island. Git Mantra #5

slide-17
SLIDE 17

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

nutshell

slide-18
SLIDE 18

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

“Understanding commits is the key to understand Git. You’ll know you have reached the Zen plateau when your mind contains only commit topologies, leaving behind the confusion of branches, tags and remote repositories.”

― John Wiegley, “Git from the bottom up”

slide-19
SLIDE 19

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

Learn it

Pro Git

http://git-scm.com/book

Git from the bottom up

http://bit.ly/gitbottomup

GitImmersion

http://gitimmersion.com

slide-20
SLIDE 20

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

Thank you.

slide-21
SLIDE 21

This work by Enrico Campidoglio is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/

  • r send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

@ecampidoglio megakemp.com Contact me