commandlinegamer
Philosopher
As far as I know this G-d thing is actually an oldfashioned use to mask swearing, like the autocensor. Not used when the word is employed correctly and theologically within a sentence, but used for slightly embarrassing outbursts like "By G-d!"
IIRC, I first came across the Jewish custom of spelling God as G-d in the Usenet forum rec.humor.funny, some years ago. The link in Adman's post explains the reasoning quite well.
As for masking swearing, a long underscore was used in place of swearwords; I've several novels where profanity is basically "__________".