Originally Posted by
JohnDThompson
Apply front brake to lock the wheel, push forward, lifting the rear wheel off the ground, rotate the pedals until they're properly oriented, release front brake, done.
Or, lacking a brake, just pick up the rear of the bike between your legs and rotate the pedals to reposition. It's less graceful, but would work assuming you aren't riding a fairly oversized frame.