SAN FRANCISCO -- Andres Torres talks himself into a positive state of mind no matter the circumstance. This year, it's paying dividends.
Torres led off the eighth inning with a go-ahead home run, helping the San Francisco Giants beat the Colorado Rockies 5-2 on Tuesday night to close within four games of the NL West-leading San Diego Padres.
"I try to think something positive every time out," Torres said. "I reminded myself to go out and swing hard and stay loose. Every game from now on is going to be important."
Matt Belisle (6-5) gave up a run in his third consecutive appearance after not allowing any in his previous 14 outings.
"You overthink things like this and you dig yourself a bigger hole," Belisle said. "I've been through stuff like this before. The main thing is to maintain my aggression and get right back out there."
Giants starter Madison Bumgarner is still looking for his first win at home after allowing a run and five hits over six innings. He walked three and struck out two.
"They're creeping back into the race and we need to pull away from them again," Bumgarner said. "It felt good to go out there and pitch well."
Bumgarner, winless in six home starts, gave up eight runs in 2 2/3 innings in his last start.
"Madison did a great job of keeping us in the game," Posey said. "He pounded the zone. That was a big boost for us."
Rockies starter Esmil Rogers went six-plus innings, allowing two runs and four hits. He walked two and struck out three.
"We did a terrific job and created some opportunities for ourselves," Rockies manager Jim Tracy said. "Andres Torres, obviously, was the big at-bat, hitting a 3-2 pitch out of the park. They just beat us."
Sanchez doubled with one out in the first, went to third on a groundout by Aubrey Huff and scored on a balk by Rogers, who fumbled the ball during his delivery after getting his spike caught in his shoelace.
With two outs in the fifth, Juan Uribe singled and scored on Bumgarner's double to give the Giants a 2-1 lead.
"My first at-bat I was guessing wrong on every pitch," Bumgarner said. "So I just looked for the fastball and got it. I might have gotten lucky on that."
Mora's two-out homer in the eighth tied it for the Rockies, who rallied from a 1-0 deficit in the ninth to beat the Giants on Monday night.
"That was kind of a gut-check," Posey said. "Guys came back and fought hard. That's what we're going to have to do."
Bumgarner got his first career extra-base hit. ... Sanchez extended his hitting streak to eight games with his first-inning double. ... The Rockies acquired RHP Manny Delcarmen from Boston for minor league pitcher Chris Balcom-Miller. ... Giants starters were 5-13 with a 5.13 ERA in August.
Blackmon clears the bases, Murphy knocks in 4th run of inning
Charlie Blackmon clears the bases with a double to deep right field and Daniel Murphy adds on to the Rockies' 4-run fourth inning with a single to left in Colorado's win over Seattle.
Sources: Cardinals vs. Pirates on Monday postponed due to coronavirus
The Pirates won't fly to St. Louis on Sunday and their scheduled game against the Cardinals on Monday has been postponed, sources told ESPN's Jeff Passan on Saturday. Nine Cardinals players and seven staffers have tested positive for the coronavirus.
Padres activate Eric Hosmer from IL, option Abraham Almonte
San Diego Padres first baseman Eric Hosmer was activated from the injured list Saturday after missing 11 of the first 14 games with gastritis. He said he never received a precise diagnosis of the ailment.
Yankees' Giancarlo Stanton to have MRI on injured hamstring
Giancarlo Stanton will have an MRI on his hamstring, and manager Aaron Boone said "it does look like it's an IL situation" for the Yankees slugger.
Gerrit Cole fails to win 20th regular-season game in row as Yankees, Rays split doubleheader
Gerrit Cole, who had won his first three starts for the Yankees this season, struck out 10 and walked one in a no-decision Saturday, as the Yankees defeated the Rays to open a doubleheader.
Tigers hit 4 homers on game's first 11 pitches in rout of Pirates
Niko Goodrum, Miguel Cabrera, C.J. Cron and Jeimer Candelario all hit home runs in the first inning against Pittsburgh's Derek Holland as the Detroit Tigers drilled the Pirates 11-5 on Saturday.