As with most complex skills using hands - it is important to stretch/warm up on a regular basis.
And like any exercise, it is also important not to overdo it. Remember, if it starts to hurt, then STOP! Same thing if you have ongoing pain in the wrist or finger joints - take a break and if the pain persists, see a professional physio/doctor.
I took a 15 year break from playing guitar, then took it up with earnestness and was playing for about 2 hours a day. I soon got really bad pains in the top 2 joints of my left hand fingers. I actually thought I was getting arthritis. My technique also started to slip a bit, and I was devastated.
It was only when I went away on a business trip for 7 days and didn't touch guitar for all that time that the pain went away and I was able to enjoy playing again.
I've since learnt from that never to overdo it again. Also, changing my practice routine so that I was focusing on different things helped. For instance, I don't just mindlessly do repeating scales faster and faster all the time like I used to. I now try and work on specific licks and getting some 'feeling' in my playing. I also make sure my fingers are already warmed up and flexible before trying and bends or vibrato.
I now practice for around 60 to 90 minutes per day. Sometimes I find that if I take a whole day or two break in my routine, my playing is actually BETTER when I go back to it (once I've warmed up of course). This fits the concept of most exercising and body building etc. - It is good to work out regularly, but sometimes your body just needs a short break to repair and heal itself.
Best of luck! 
JBLP Gold Top #129 - redubbed "#1 in Oz"