MILWAUKEE (AP) — Heralded 20-year-old rookie Madison Bumgarner gave up three hits in eight shutout innings for his first major-league win, and San Francisco Giants beat the Milwaukee Brewers 6-1 on Tuesday night.

The left-hander, in his fourth major league start and third of the season, gave up three singles, struck out five and walked three. Bumgarner (1-2) picked up his first career RBI as part of a five-run Giants sixth.

Milwaukee's Randy Wolf (6-8) gave up five runs, one earned, in seven innings, striking out eight and walking four for Milwaukee, but Craig Counsell's two-run throwing error opened the door to San Francisco's big inning.

Bumgarner, the team's first-round draft pick in 2007 and rated San Francisco's No. 2 prospect before the start of the season, has gone at least seven innings in each game since being recalled from Triple-A Fresno on June 26.

Milwaukee's Corey Hart had his 20-game hitting streak snapped.

Wolf used a devastating curveball to cruise through five innings, with some crossing the plate in the upper 60s. But he found trouble — and was the victim of shoddy defense — in the sixth.

Andres Torres and Freddy Sanchez walked to open the inning but Wolf struck out Buster Posey. Torres and Sanchez then executed a double steal, and Pat Burrell was intentionally walked.

Pablo Sandoval grounded weakly to Counsell at shortstop for what should have been an easy double play. Instead, Counsell threw wildly past Rickie Weeks at second and into foul territory behind first base, scoring two runs.

The defensive damage continued after Edgar Renteria popped out to first. Wolf walked Aaron Rowand intentionally, and Travis Ishikawa lined a single off the glove of Weeks into right field. Burrell scored, and Sandoval followed after Weeks hesitated before throwing home. Bumgarner singled to right to score Rowand.

Counsell was in the lineup after costly errors by regular starter Alcides Escobar in each of the past two games. On Monday, Escobar booted a potential double-play ball that led to two Giants runs, as San Francisco beat Milwaukee 6-1. On Sunday, Escobar committed consecutive errors with two outs in the third inning of a loss to St. Louis that paved the way for five unearned runs.

A throwing error helped the Giants score another unearned run in the eighth, as Ishikawa singled, took second when Coffey threw wide of second on a sacrifice bunt attempt and scored on a sacrifice fly by Posey.

Joe Inglett's RBI single in the ninth off Giants reliever Sergio Romo broke up the shutout.

NOTES: The Giants are 17-7 against the NL Central. ... Milwaukee placed RHP Yovani Gallardo on the 15-day DL with a left oblique strain and reinstated LHP Doug Davis from the DL. Davis, on the DL since May 16 with inflammation of the lining around his heart, will start Friday against Pittsburgh, the team said. Gallardo's move was retroactive to Monday. ... RHP Tim Lincecum (8-4, 3.28) starts for the Giants on Wednesday. He has lost two straight for the second time this season and fifth time in his career, giving up eight earned runs and seven walks in nine innings.