Etymology
Today it means: A mild exclamation of contempt, surprise, outrage, etc. Full definition →
A modification of by God.
Etymology from Wiktionary, CC BY-SA 4.0.