You have to defiantly learn by experimenting, but in a repo on the playground.
A catalog of playgrounds in a repo will have less benefit.
Play, make some mistakes, learn some things - delete them several times and go into the wild.
eg.
$ mkdir playground $ git init $ touch hello-world $ git add hello-world $ git commit -m "my first commit" $ git branch goodbye $ git checkout goodbye $ echo "goodbye" | cat >>hello-world $ git status $ git add hello-world $ git commit -m "goodbye commit" $ git merge master
I also recommend grabbing the plug of the active project in your chosen language from GitHub and letting it merge, reload, etc. with real code.
rjocoleman
source share