Slide 1

Slide 1 text

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

Slide 2

Slide 2 text

This presentation is not really about It's really about

Slide 3

Slide 3 text

= ? ? =

Slide 4

Slide 4 text

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

Slide 5

Slide 5 text

=

Slide 6

Slide 6 text

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

Slide 7

Slide 7 text

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

Slide 8

Slide 8 text

gists? * Short code snippets * Random notes

Slide 9

Slide 9 text

-- "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...

Slide 10

Slide 10 text

...gists for other random stuff...

Slide 11

Slide 11 text

Clone https://gist.github.com/ID.git https://gist.github.com/USER/ID Embed Link

Slide 12

Slide 12 text

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

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

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

Slide 15

Slide 15 text

markdown

Slide 16

Slide 16 text

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

Slide 17

Slide 17 text

Press "m"

Slide 18

Slide 18 text

# 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...

Slide 19

Slide 19 text

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

Slide 20

Slide 20 text

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/

Slide 21

Slide 21 text

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

Slide 22

Slide 22 text

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

Slide 23

Slide 23 text

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

Slide 24

Slide 24 text

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

Slide 25

Slide 25 text

'nuff said!

Slide 26

Slide 26 text

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