SAN FRANCISCO — For the Cincinnati Reds, blowing a 10-1 lead didn't mean losing the game.
Only hours after Atlanta squandered that exact same advantage and fell to Colorado, the Reds wound up with a win — barely.
Saved by Paul Janish's tying single in the ninth inning, the Reds regrouped and rallied past the San Francisco Giants 12-11 Wednesday on Joey Votto's tiebreaking single in the 12th.
Votto hit a pair of home runs and Jonny Gomes hit his 100th career shot that gave the NL Central leaders their huge lead going into the bottom of the fifth. The Giants came back, and Aubrey Huff's sacrifice fly capped a six-run burst in the eighth that put them ahead 11-10.
"We had such a comfortable lead for most of the game," Votto said. "For them to come back like that, it could have been difficult to recover. Momentum plays a big role in a game like this. We just showed some resiliency to come back ourselves."
A two-base throwing error by third baseman Pablo Sandoval on Drew Stubbs' one-out grounder in the Reds ninth set up Janish's single.
Votto had four hits and four RBI as Cincinnati avoided a sweep. Miguel Cairo doubled and scored on Votto's two-out single in the 12th off Barry Zito (8-9), making his second career relief appearance.
Ryan Hanigan and Stubbs also homered for Cincinnati. The Reds homered three times in the first inning, and the slugfest put an exclamation mark on the highest-scoring three-game series at AT&T Park.
The Giants scored at least 11 runs in three straight games for the first time since June 1953. The Reds' rally spoiled what would've been the biggest comeback in franchise history.
The NL East-leading Braves weren't so fortunate in their 12-10 loss at Coors Field. The major-league record for the biggest comeback is 12 runs, most recently by Cleveland against Seattle in 2001. The NL mark is 11, last done by Houston against St. Louis in 1994.
Francisco Cordero (4-4) pitched the final two innings.
Juan Uribe's three-run homer in the eighth sparked the Giants' late rally as the first six hitters reached base. Jose Guillen and Sandoval singled ahead of Uribe's shot. Cody Ross and Mike Fontenot singled ahead of Andres Torres' two-run double. Torres later scored on Huff's medium fly.
Reds starter Homer Bailey lasted 51⁄3 innings and was in line for his third straight victory since coming off the disabled list on Aug. 15.
Giants rookie Madison Bumgarner had his worst outing in the majors, allowing eight runs in 22⁄3 innings.
The Reds hit three home runs in the first inning, taking a 4-0 lead. Votto hit a two-run shot, while Gomes and Hanigan went back-to-back. The Reds hit consecutive homers for the eighth time this season and the second time in a week.
Freddy Sanchez doubled in a run for the Giants in the second, but Stubbs' two-run shot in third highlighted another four-run inning.
Votto added a solo homer in the third.
■ Reds 2B Brandon Phillips left the game an inning after getting hit by a pitch in the fifth. Phillips, who was X-rayed, said his hand was too swollen to determine the damage.