I have a directory with all my coding projects.
I want to upload (correct terminology?) it to GitHub using the command line.
I have already looked at Old questi
You can create GitHub repositories via the command line using their Repositories API (http://develop.github.com/p/repo.html)
Check Creating github repositories with command line | Do it yourself Android for example usage.