To do a 180 G-Turn you...

1. Begin to ride at a moderate speed

2. Lean forward while pulling yourself to the side you will 180 to. Put on your front brake a little as you turn. 

3. Whip yourself out of it and fakie.

The 180 G-turn is a fairly complicated front wheel trick, your going to need alot of good balance and the front brake is optional although I recommend you have one.