Of all the answers and suggestions in this question, none of them would work for me consistently--having something you really look forward to helps though, one thing I do is I promise myself to work at least one hour first thing in the morning, on something that I absolutely love (usually involves programming).
But that's more to keep me moving in the morning and to encourage myself to set my alarm to 5am or earlier on any given day. For me the only technique I can rely on is this:
This is going to sound really stupid, but it works. Practice getting
up as soon as your alarm goes off. That’s right — practice. But
don’t do it in the morning. Do it during the day when you’re wide
Go to your bedroom, and set the room conditions to match your desired
wake-up time as best you can. (..) Set your alarm for a few minutes
ahead. Lie down in bed just like you would if you were sleeping, and
close your eyes. Get into your favorite sleep position. Imagine it’s
early in the morning… a few minutes before your desired wake-up time.
Pretend you’re actually asleep. Visualize a dream location, or just
zone out as best you can.
Now when your alarm goes off, turn it off as fast as you can. (..)
shake yourself off, restore the pre-waking conditions, return to bed,
reset your alarm, and repeat. Do this over and over and over until it
becomes so automatic that you run through the whole ritual without
thinking about it.
--from How to Get Up Right Away When Your Alarm Goes Off by Steve Pavlina.
Now, that advice is life-changing for bed-loungers, but it alone didn't yet do the trick for me. What I did is I went full Pavlov-style (no relation to Pavlina), or doggy-style if you're feeling puny. I set my alarm to a song and trained myself to react to it's introduction with mindless precision, through the method described above. It's only about 5 seconds into the song--Wouldn't It Be Nice by The Beach Boys--I often load my iPod with just the intro trimmed out of the full song file.
I highly recommend a speaker such as the one above--Sony Compact and Slim Travel Speaker, not necessarily in these helplessly snazzy colors. It plugs and gets power directly from the iPod, and you can easily detach just the top white part and slip it under the pillow. Then turn the iPod volume all the way up. You get quite a loud alarm but creatures outside the territory of your pillow hear a harmlessly muffled 60s classic at best.
Each part of the intro is an automatic cue: I stretch during the initial instrumental part, open my eyes on the thump, and jump out of bed as soon as the voice begins. Been doing it for 3 years and counting.
Works like a charm, never gets old.