Github: Ab in die Wolke

_images/gitcloud.png

Was ist Github?

Octocat

_images/octocat.jpg

Was kann Github?

Demo: Nutzerprofil

# Wird in ~/.gitconfig gespeichert
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com

Demo: Fork

Demo: Pull Requests

Ablauf ohne GitHub:

# Auf Seite des Forkers (bob)
$ git request-pull HEAD^1 https://github.com/<bob>/repo.git
The following changes since commit 04ca9db3149956ed7670d699cb4b4328386b88e1:
  Sophisticated commit message. (2013-05-11 00:36:56 +0200)
are available in the git repository at:
  https://github.com/<bob>/repo.git master
$ git push
# Bob sendet diesen Text an Alice
# Auf Seite des Annehmers (alice):
$ git remote add bob https://github.com/<bob>/repo.git
$ git pull bob 04ca9d

Ablauf mit GitHub:

  • bob macht über GitHub einen Pull Request.
  • alice klickt auf Confirme Merge.

Demo: Organisationen

Features:

Verwaltung von...

Demo: Online Blame/Annotate/Edit

Code lässt sich online:






Tipp: Auch Bilder, Dokumente und Videos sind previewbar.

Demo: Sonstiges #1

Demo: Sonstiges #2

Github-API

Möglichkeit um…

# Alle Repositories eines Users auflisten
$ curl -q https://api.github.com/users/qitta/repos \
  | grep 'full_name'
"full_name": "qitta/dotfiles",
"full_name": "qitta/foozel",
"full_name": "qitta/scripts",

git hooks

$ echo "echo I am a hook." > .git/hooks/pre-commit
$ git commit -am "some message"
I am a hook.
# Auf Zweig master
# Ihr Zweig ist vor 'origin/master' um 3 Versionen.
# ...

Demo: Cloud-Hooks

  • Twitter

    Commit-Messages auf Twitter posten.

  • TravisCI

    make && make test

  • ReadTheDocs

    Generierung von Dokumentation.

  • Bugzilla

    Linking von Bugs in Commit-Message.

  • Email

    Bei Commit Email an Mailingliste schicken.

Meine Damen und Herren...






Die Haupattraktion des Tages: Lasst die Spiele beginnen