Etymology
Today it means: An oath; expressing fury, surprise etc. Full definition →
Shortened form of God's lid.
Etymology from Wiktionary, CC BY-SA 4.0.