Etymonline has this on the word: gosh 1757, altered pronunciation of God. Probably from by gosse (mid-16c.). but offers no additional information on gosse other than as a German word for gutter under the entry for gut. Wikitonary's listing for gosse also seems to hold no further clues. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.