The origin of the term "G-string" is obscure. Since the 19th century, the term geestring referred to the string which held the loincloth of Native Americans and later referred to the narrow loincloth itself. William Safire in his Ode on a G-String quoted the usage of the word "G-string" for loincloth by Harper's Magazine 15 years after John Hanson Beadle's 1877 usage and suggested that the magazine confused the word with the musical term G-string (i.e., the string for the G note). This is apocryphal, as the narrowest string on a violin is the E string.
Safire also mentions the opinion of linguist Robert Hendrickson that G (or gee) stands for groin, which was a taboo word at the time.
The g-string first appeared in costumes worn by showgirls in Earl Carroll's productions during the Jazz Age. Linguist Robert Hendrickson believes that the 'g' stands for 'groin'. The Oxford English Dictionary reports that the G-string was originally a narrow strip of fabric worn by Indian women. During the Depression, a "G-string" was known as "the gadget", a double-entendre that referred to a handyman's "contrivance", an all-purpose word for the thing that might "fix" things. During the 1930s, the "Chicago G-string" gained prominence when worn by performers like Margie Hart, The Chicago area was the home of some of the largest manufacturers of G-strings and it also became the center of the burlesque shows in the United States.