A lot of folks have touched on it already, but just get more miles. Don't ride hills that you can't complete without hurting quite yet. You need to just put in some routine effort miles for the time being. Get used to riding, build your stamina a bit, get your heart and lungs as well as your legs used to it slowly. Pushing too hard too fast will end up injuring you.