The story
Representing a Cockney pronunciation of God blind me!; traditionally, people would curse using contractions rather than breaking the third commandment (Do not use the Lord's name in vain oaths). Compare strewth, zounds, 'sblood.
Etymology from Wiktionary, CC BY-SA 4.0.