Well done for getting up the hill.
Climbing hills is a matter of technique:
Most important... RELAX, especially the upper body.
Select nice low gear where you can spin your legs around at a comfortable pace.
Sit back on the saddle.
Did I mention to RELAX the upper body and arms?
Drive with your legs and lower back.
Gently wind yourself up the hill.
Many people make the mistake of 'attacking' the hill and wrestling the bike up, this wastes an awfull lot of energy that is better used by just the legs and back.