jig (n.) Look up jig at Dictionary.com
"lively dance," 1560s, perhaps related to Middle French giguer "to dance," or to the source of German Geige "violin." Meaning "piece of sport, trick" is 1590s, now mainly in phrase the jig is up (first attested 1777 as the jig is over). As a verb from 1580s.