Ah, got it.  I don't know of a better way, although looking at this:

http://stackoverflow.com/questions/115983/how-do-i-add-an-empty-directory-to-a-git-repository

It seems that naming the file `.gitignore` is a slightly more "standard" way of hacking it… mainly, it makes it clear that the file is specifically git-related.