Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction to git

alicetragedy
November 02, 2013

Introduction to git

A very simple introduction to the concept of git for Pyladies Vienna.

alicetragedy

November 02, 2013
Tweet

More Decks by alicetragedy

Other Decks in Programming

Transcript

  1. Introduction to git

    View full-size slide

  2. "In software development, Git /ɡɪt/ is a distributed
    revision control and source code management
    (SCM) system with an emphasis on speed. Git was
    initially designed and developed by Linus Torvalds
    for Linux kernel development in 2005. Every Git
    working directory is a full-fledged repository with
    complete history and full version tracking
    capabilities, not dependent on network access or a
    central server."
    - Wikipedia

    View full-size slide

  3. Git is a tool that will help
    you track down changes in
    your work and your code.

    View full-size slide

  4. (Git is basically the slightly annoying girlfriend/boyfriend that will
    constantly take pictures of you: while you're eating, while you're
    walking, while you're sleeping; tracking down your every move. At
    first it's a little difficult to get used to it, but the day you really need
    to know what you were wearing at your third cousin's best friend's
    brother's 17th birthday party, those photos will come in handy.)

    View full-size slide

  5. Some basic concepts

    View full-size slide

  6. git works with source code

    View full-size slide

  7. git tracks changes

    View full-size slide

  8. git helps collaboration

    View full-size slide

  9. git works in a non-linear way,
    and there are different ways
    to use that to your
    advantage

    View full-size slide

  10. Understand the lingo

    View full-size slide

  11. repository
    !
    the "folder" inside your
    project where all the
    changes will be

    View full-size slide

  12. commit
    !
    a way to "save your changes"

    View full-size slide

  13. a little like a tree, you have the
    main trunk (master branch)
    and the feature branches, so
    you can work on separate
    things simultaneously

    View full-size slide

  14. Follow these steps

    View full-size slide

  15. install git
    !
    http://git-scm.com/

    View full-size slide

  16. initiate a repository for the
    project you want to track
    !
    (git init)

    View full-size slide

  17. stage the files you have
    made changes to
    !
    (git add)

    View full-size slide

  18. comment and commit your
    changes to the files you
    have added
    !
    (git commit -m)

    View full-size slide

  19. check the status of your
    changes
    !
    (git status)

    View full-size slide

  20. Usually, you run these
    commands from the
    terminal. There are also
    GUIs (Graphic User
    Interfaces) available, though

    View full-size slide

  21. Have fun!
    !
    &say hello on twitter or
    github:
    @alicetragedy

    View full-size slide