Workingout at morning

Hi guys what do you do to prepare your body for an early morning workout (after bed directly ) so you may not get injured?

What do you eat ?

How long do you warmup

What is you advices knowing that I've been away from traning for 5 monthes now.