Originally Posted by
elgalad
With regard to weaving, how fast are you going when this starts to happen? If you're going really slowly (maybe 5-6 mph), then this could be the cause. Otherwise, try and lean forward a little bit. A good rule of thumb is to have your head directly above the intersection of the stem and handlebars, and try and get a rhythm going, with the bike rocking gently back and forth through 9-12 inches of arc. Again, this will be easier if you're pushing a bigger gear at lower cadences.
Good advice but I'd like to point out that the handlebars and the upper part of the bike can go back and forth 9-12". The wheel contact patch shouldn't move much off of a straight line.
Go find some Youtube videos of bicycle racers and watch how they climb. Then go out and apply what you've learned.