Joc Pederson hit a go-ahead, two-run single against Corbin Burnes in the fifth inning that propelled the San Francisco Giants to a 6-4 victory over the scuffling Milwaukee Brewers in the opener of a three-game series Friday night. J.D. Davis and pinch-hitter Wilmer Flores homered for the Giants, who twice came back from two-run deficits and won their third consecutive game following a five-game losing streak.