What does mean 'gig' in army?

I saw a movie, when troublesome soldier was punished by 'one gig'. What this exactly mean? What kind of punishment is it?
Thank you
4 answers 4