• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Intro to Git
 

Intro to Git

on

  • 1,092 views

A short introduction to Git, hopes to inspire people to use this wonderful distributed RCS.

A short introduction to Git, hopes to inspire people to use this wonderful distributed RCS.

Statistics

Views

Total Views
1,092
Views on SlideShare
1,091
Embed Views
1

Actions

Likes
2
Downloads
1
Comments
0

1 Embed 1

http://lanyrd.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Intro to Git Intro to Git Presentation Transcript

    • Introduction to Git OJ Tibi <oj@tibi.ph>Saturday, June 18, 2011Greets to all.Ask how many have used Git, of any other RCS, CVS, SVN, etc.
    • About Me • Ex-ninja of PoliticalArena.com and newbie warrior at Shopinas.com • 3+ years enjoying CakePHP • Fedora fanSaturday, June 18, 2011Short description about the author of the presentation.
    • What is Git?Saturday, June 18, 2011Git is a distributed revision control system (RCS). An RCS is a kind of software that trackschanges on files that are in a certain repository. “Distributed” describes how Git does notneed a central server to record changes on the said repository.
    • Saturday, June 18, 2011Short information about Linus Torvalds and on creating Git.Linus (and the Linux project) needed a new RCS after BitKeeper became non-free.Linus found that current SCMs lack performance, decided to make Git.
    • Saturday, June 18, 2011Short information about Linus Torvalds and on creating Git.Linus (and the Linux project) needed a new RCS after BitKeeper became non-free.Linus found that current SCMs lack performance, decided to make Git.
    • Saturday, June 18, 2011Short information about Linus Torvalds and on creating Git.Linus (and the Linux project) needed a new RCS after BitKeeper became non-free.Linus found that current SCMs lack performance, decided to make Git.
    • Saturday, June 18, 2011Short information about Linus Torvalds and on creating Git.Linus (and the Linux project) needed a new RCS after BitKeeper became non-free.Linus found that current SCMs lack performance, decided to make Git.
    • Git is... • A distributed revision control system • Created by Linus Torvalds and Junio Hamano • Independent of network access or a central server (reminds you of SVN, huh?)Saturday, June 18, 2011Short description about Git.
    • Who Uses Git?Saturday, June 18, 2011List of companies or projects that use Git, starts with Twitter...
    • Saturday, June 18, 2011...Facebook, and CakePHP as examples of projects that use Git.These projects and companies rely on the fast, independent, distributed nature of Git.
    • Saturday, June 18, 2011...Facebook, and CakePHP as examples of projects that use Git.These projects and companies rely on the fast, independent, distributed nature of Git.
    • Saturday, June 18, 2011...Facebook, and CakePHP as examples of projects that use Git.These projects and companies rely on the fast, independent, distributed nature of Git.
    • Saturday, June 18, 2011...Facebook, and CakePHP as examples of projects that use Git.These projects and companies rely on the fast, independent, distributed nature of Git.
    • Where to Use Git?Saturday, June 18, 2011Following is a list of file types where one may consider putting into an RCS, specifically Git.
    • Saturday, June 18, 2011Source code, talk about kinds of source code (HTML5, CSS3, PHP, Python, Ruby, JS)“Projects like the web site of a multinational company that hopefully wouldn’t get hackedagain and again...”
    • Saturday, June 18, 2011PDFs, text documents, spreadsheets, presentationsNext: images (binaries)
    • Saturday, June 18, 2011PDFs, text documents, spreadsheets, presentationsNext: images (binaries)
    • Saturday, June 18, 2011PDFs, text documents, spreadsheets, presentationsNext: images (binaries)
    • Saturday, June 18, 2011PDFs, text documents, spreadsheets, presentationsNext: images (binaries)
    • Saturday, June 18, 2011Images (and some binaries), YMMV, as not all images are recommended to be kept insidesource control. Most projects need images, so you might want to count them in. SVGillustrations, PNG icons, GIF diagrams of your corporate network, JPG photos and evensometimes PSDs... just to make sure you can roll back to something in case you need tomake some edits. :)
    • Saturday, June 18, 2011Images (and some binaries), YMMV, as not all images are recommended to be kept insidesource control. Most projects need images, so you might want to count them in. SVGillustrations, PNG icons, GIF diagrams of your corporate network, JPG photos and evensometimes PSDs... just to make sure you can roll back to something in case you need tomake some edits. :)
    • Saturday, June 18, 2011Images (and some binaries), YMMV, as not all images are recommended to be kept insidesource control. Most projects need images, so you might want to count them in. SVGillustrations, PNG icons, GIF diagrams of your corporate network, JPG photos and evensometimes PSDs... just to make sure you can roll back to something in case you need tomake some edits. :)
    • Saturday, June 18, 2011Images (and some binaries), YMMV, as not all images are recommended to be kept insidesource control. Most projects need images, so you might want to count them in. SVGillustrations, PNG icons, GIF diagrams of your corporate network, JPG photos and evensometimes PSDs... just to make sure you can roll back to something in case you need tomake some edits. :)
    • Saturday, June 18, 2011Images (and some binaries), YMMV, as not all images are recommended to be kept insidesource control. Most projects need images, so you might want to count them in. SVGillustrations, PNG icons, GIF diagrams of your corporate network, JPG photos and evensometimes PSDs... just to make sure you can roll back to something in case you need tomake some edits. :)
    • Getting GitSaturday, June 18, 2011Explain the methods how Git can be obtained.
    • Git It Here • *Nix • http://git-scm.com/ download (build it, old- • yum install git school) • apt-get install git-core • http://macports.org/ • http://git-scm.com/ • PC download • http://code.google.com/ • Mac p/msysgit • http://code.google.com/ p/git-osx-installer/Saturday, June 18, 2011*Note: Didn’t include Cygwin because it’s kinda bloated.
    • Basic Git WorkflowSaturday, June 18, 2011To work effectively using Git...
    • “init” or “clone” a repo make changes “add” and “commit” your changeset “merge” conflicts, if any “push” changes to “pull” changes from remote remote “format-patch” for submission “tag” a version for releaseSaturday, June 18, 2011A basic understanding of a Git workflow. Unlike SVN, Git needs an additional step to “push”changes from the local repository to the remote repository.
    • “format-patch” what?!? • git format-patch enables the user to create patches that can be sent via e-mail. • Was useful for Linux kernel devs, reviewing code in small teams.Saturday, June 18, 2011format-patch lets the user make patches that can be submitted via electronic mail.site how Linux devs review the code by peers before submitting to the main repository.
    • Share Your Code! • “git format-patch” old-skool, but effective for peers • “git push” to a remote repository • it, or trySaturday, June 18, 2011Offer some choices on how to share a Git repository.
    • Further Reading • http://git-scm.com/ • http://gitref.org/ • http://www.kernel.org/ pub/software/scm/git/ docs/gittutorial.html • http://help.github.com/ • Google it (of course)Saturday, June 18, 2011Some reading resources for Git learning.
    • ~Fin~ Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.  ~ Martin GoldingSaturday, June 18, 2011That concludes the introduction to Git. I hope you had some insight and use it for yourprojects.
    • Follow me! http://twitter.com/ojtibi http://tibi.ph/Saturday, June 18, 2011Don’t forget to follow me on Twitter and visit my weblog.Introduction to Git by OJ Tibi is licensed under a Creative Commons Attribution-ShareAlike3.0 Unported License.