Garage flat roof conversion to pitched roof
Depending on how your existing roof is structured it should be a very straight forward task.

Just as a mention, even flat roofs have a slight pitch.

Even pitched (gable) roofs start with the same structure at the ceiling level. Either one supporting wall is built slightly higher than the other, or by adding a little framing to create the slight pitch needed to get the rain off one side or the other.