Etymology
Today it means: Exclamation of surprise, anger etc. Full definition →
Corruption of God's diggers (“God's fingernails”).
Etymology from Wiktionary, CC BY-SA 4.0.