I will never stress enough the importance of stretching your muscles before a gig or before practising with your instrument.
Just check out the following videos, even though it is aimed at computer users, it targets the same muscles and areas involved in playing guitar. Of course, consult your physician before doing any physical activity!