Use gistup to create gists (and blocks) from the command line. The directory containing your gist files gets initialized as a git repo. See this tutorial for a quick overview.
For additional tips on generating block thumbnails, see this
block and this
HOWTO.