For me, I warm up by riding a few mph slower than my avg for about 20-30 minutes and avoid hills during that time. It usually means we ride on the flats for about a 1/2 hour and I gradually build up speed till I feel good enough to cruise and climb.