Swing out and swing your legs for a straight jump. At the peak of your swing, with your body directly under the bar, turn around to face the other way.
This trick can be achieved by turning one hand at a time, or letting go completely, turning, and the catching the bar again.
You can find out more about this trick in my books: