Brandon Belt had himself a day in Pittsburgh with three hits and his 16th home run of the year as the Giants swept the Pirates with a 5-3 win on Sunday.
Down 2-0 going into the seventh inning, the Giants responded with three runs and then two more in the eighth.
Jeff Samardzija went six innings and only allowed two earned runs while striking out five.
Jae-gyun Hwang added two more hits and is now batting .333 since his promotion.
The Giants have now won six straight and are 33-51 on the season.