Gig (for musicians): Origin?

I looked this up online, and only came up with the thought that it was from Jazz musicians in the early 1900s, origin unknown.

This is the Straight Dope, I’m sure we can do better than that. At least a first cite, or something?

Here’s what The Word Detective says.