I found myself either re-typing or cutting and pasting so much common code for numerous projects in different languages that I took what started as a template generator for Monkeybars and spun it off to a standalone boilerplate generator.
http://neurogami.github.com/rhesus/
I called it Rhesus since it was to make pieces for Monkeybars. :)
Yes, it includes a template for .gitignore.
It also allows for importing boilerplate templates from git repos.
It's one of those projects that evolves as I find I need this or that feature or behavior.