When I started commuting I had to stop twice on my 6 mile commute. I'd stop. Get off the bike and drink some water. After a couple of minutes I was ready to ride. After two weeks I could ride without stopping. After a couple of months I could sprint up hills that made me stop.
Give yourself plenty of time and take breaks at first. Pretty soon you won't need the breaks.