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

Cool features of GitHub

Cool features of GitHub

This presentation is about some of the amazing features of GitHub. The target audience is folks who might not know Git and GitHub very well, or not at all. The features can be very useful even for them, and by starting to use GitHub, they just might actually be on the fast track to becoming full-time Git users, who knows...
http://www.janosgyerik.com/cool-features-of-github/

Janos Gyerik

June 16, 2013
Tweet

More Decks by Janos Gyerik

Other Decks in Technology

Transcript

  1. (Even if you don't use Git...yet)
    Cool features of GitHub

    View full-size slide

  2. This presentation
    is not really about
    It's really about

    View full-size slide

  3. =repository of
    source code (DVCS)
    site to host git
    site to collaborate
    =

    View full-size slide

  4. is mainly for
    ... but at the same time ...
    (I guess...)

    View full-size slide

  5. ... it's also much more ...
    wiki
    gists markdown
    ...
    gh-pages issue
    tracking

    View full-size slide

  6. gists?
    * Short code snippets
    * Random notes

    View full-size slide

  7. -- "create" a user in MySQL
    GRANT ALL PRIVILEGES ON dbname.* TO 'dbuser'@localhost
    IDENTIFIED BY 'userpass';
    /* CSS media query: apply if width < 980px */
    @media (max-width: 980px) {
    body { padding-top: 0; }
    }
    // where the hell my log4j settings come from??
    System.out.println(Loader.getResource("log4j.properties"));
    System.out.println(Loader.getResource("log4j.xml"));
    ...gists for random code snippets...

    View full-size slide

  8. ...gists for other random stuff...

    View full-size slide

  9. Clone https://gist.github.com/ID.git
    "https://gist.github.com/USER/ID.js"><br/>
    https://gist.github.com/USER/ID
    Embed
    Link

    View full-size slide

  10. ...mmm too many
    gists piling up?
    perhaps it's time
    to create a repo?

    View full-size slide

  11. Add files right there...
    Edit files right there...

    View full-size slide

  12. github flavored markdown
    ```javascript
    function fancyAlert(arg) {
    if (arg) {
    $.facebox({div:'#foo'})
    }
    }
    ```
    function fancyAlert(arg) {
    if (arg) {
    $.facebox({div:'#foo'})
    }
    }

    View full-size slide

  13. # naturally:
    git clone https://github.com/USER/PROJECT.git
    # ...but also:
    svn checkout https://github.com/USER/PROJECT.git
    # that's right, you can use Subversion
    too with GitHub!!!
    btw...

    View full-size slide

  14. wiki!
    * can clone it
    * edit on GitHub or locally
    * use any wikitext
    * atom feed
    = https://github.com/USER/PROJECT.wiki.git

    View full-size slide

  15. gh-pages?
    = static html hosting
    = project demo page
    Step 1: create branch: gh-pages
    Step 2: git push to GitHub
    Step 3: http://USER.github.io/PROJECT/

    View full-size slide

  16. NONE of the above is a primary
    function of GitHub...
    These are "just" the "extras"!
    ... but the truth is ...

    View full-size slide

  17. GitHub is popular
    2008 2009 2011
    2010 2012 2013
    42000
    166000
    510000
    1.2m
    1.9m
    # of users

    View full-size slide

  18. GitHub is huge
    2008 2009 2011
    2010 2012 2013
    80000
    484000
    1.3m
    3.4m
    6.5m
    # of repositories

    View full-size slide

  19. GitHub is rock solid
    * GitHub is upgraded 20-40 times per day
    * GitHub is faster than your website
    * GitHub has better uptime than your
    website

    View full-size slide

  20. https://github.com/features
    https://speakerdeck.com/holman/git-and-github-
    secrets
    https://speakerdeck.com/holman/scaling-github
    https://speakerdeck.com/holman/how-github-uses-
    github-to-build-github
    https://github.
    com/janosgyerik/articles/tree/master/cool-features-of-
    github

    View full-size slide