$30 off During Our Annual Pro Sale. View Details »

git from the ground up

git from the ground up

A work in progress git introduction. A lot of supplementary demos are done in terminal so this might not make much sense. Maybe I'll do a video version.

Tyler Ball

June 07, 2012
Tweet

Other Decks in Programming

Transcript

  1. View Slide

  2. git from the ground up
    v0.1

    View Slide

  3. gitcHJUc
    noun Brit., informal
    an unpleasant or contemptible person.
    ORIGIN 1940s: variant of the noun get (see sense 3).
    What is git?
    git is also a version control system created
    by Linus Torvalds for developing the
    Linux Kernel.
    He once said that he sees “Subversion as
    being the most pointless project ever
    started.”

    View Slide

  4. Why should I use git?
    • Git is fast: Almost everything git does, it does it local.
    • Git is small: SVN repos can be huge.
    • Git encourages good coding: local means quick,
    frequent commits, easy branching for features, etc.
    • Git is distributed: Everybody has their own copy of
    all the code. A server can be used, but is not necessary.
    • Git is popular.
    • Git is secure: Public encrypted keys instead of
    plaintext passwords
    See more: https://office.trapeze.com/wiki/developers/research/moving-to-git/
    (on one slide)

    View Slide

  5. git is distributed
    svn git

    View Slide

  6. git is distributed
    svn git
    server

    View Slide

  7. git is distributed
    svn git
    server
    client
    client
    client

    View Slide

  8. git is distributed
    svn git
    server
    client
    client
    client

    View Slide

  9. git is distributed
    svn git
    server
    client
    client
    client
    client client
    client
    client

    View Slide

  10. git is distributed
    svn git
    server
    client
    client
    client
    client client
    client
    client

    View Slide

  11. git is distributed
    svn git
    server
    client
    client
    client
    client client
    client
    client
    server

    View Slide

  12. client
    git is distributed
    svn git
    server
    client
    client
    client
    client client
    client
    client

    View Slide

  13. • All clients keep a full copy of the repository
    and its history.
    • git only stores the differences between
    changes, not the whole tree at each change
    like svn

    View Slide

  14. How do I use git?

    View Slide

  15. Github for Mac

    View Slide

  16. GitX

    View Slide

  17. SourceTree

    View Slide

  18. Demo

    View Slide

  19. Changes
    http://git-scm.com/book/en/Git-Basics-Recording-Changes-to-the-Repository

    View Slide

  20. More Learning
    • Read the book Pro Git, available for free on the git
    website: http://git-scm.com/book
    • Install git-achievements and learn git interactively:
    https://github.com/icefox/git-achievements
    • Watch this video where a dude uses Tinkertoy to
    explain the internals of git: http://blip.tv/open-
    source-developers-conference/git-for-ages-4-and-
    up-4460524

    View Slide