Its just a less blasphemous way of saying God dammit, it means exactly the same thing because it is the same thing. Its a bit like cockney rhyming slang.
Why are you all unable to see that this means God dammit!? Dag nammit!