SCOTTSDALE, Ariz. -- Right-handers Tim Lincecum of San Francisco and Jhoulys Chacin of Colorado built up their pitching stamina on Sunday as the Giants rallied to beat the Rockies, 9-7, on a walk-off homer by Cole Gillespie before a sellout crowd of 11,756 at Scottsdale Stadium.
Brandon Belt, who was 3-for-4 with two RBIs, made it a one-run game with his single in the ninth, setting up Gillespie's heroics off Rockies reliever Daniel Rosenbaum.
Idled through much of the spring with a blister on the middle finger of his throwing hand, Lincecum worked four innings, exceeding by one out the total number of innings he logged in his previous two starts. He surrendered two runs and three hits, retiring eight of the last nine batters he faced.
Lincecum said that as the game progressed, "Things started coming out of my hand a little better and where I wanted."
Making his first Rockies start since returning from his World Baseball Classic stint with Team Venezuela, Chacin went 4 2/3 innings, also topping his two-start Cactus League total by one-third of an inning. Though he yielded four runs and nine hits, he welcomed the chance to face the reigning World Series champions and National League West foes.
"It's good to see them right now," Chacin said. "Like today, there were three hits from Pence, and the other guys, now I know when I get to the season I know what I can do and what I can't. That's good for me."
Colorado's Michael Cuddyer drove in three runs, including two with a two-out double off Scott Proctor that broke a seventh-inning, 4-4 tie. Hunter Pence led the Giants with a 3-for-4, two-RBI afternoon.
Each team began the scoring with pairs of runs in the first and fifth innings.
In the first, the Rockies got to Lincecum with two outs and none on base. Carlos Gonzalez walked on a 3-2 pitch before Troy Tulowitzki and Cuddyer hit back-to-back RBI doubles.
The Giants responded in similar fashion during their half of the inning with three consecutive one-out hits. Marco Scutaro singled to set up run-scoring doubles by Pence and Buster Posey. It was Posey's first extra-base hit in 22 spring at-bats.
Colorado struck again in the fifth against Minor Leaguer Edwin Quirarte. Dexter Fowler singled, Jeff Rutledge hit an RBI double and Tulowitzki lofted a sacrifice fly.
San Francisco countered with Andres Torres' triple, Pence's run-scoring single and Belt's RBI double.
Up next for the Rockies: Looking to capitalize on four scoreless innings against the Cubs in his last outing, left-hander Jorge De La rosa will start against the Reds on Monday at Salt River Fields at Talking Stick at 8:10 p.m. MT. Lefty Christian Friedrich, who sustained a back injury just before the start of camp, will make his first Cactus League appearance. Friedrich hopes he can wow the staff in the final two weeks of camp and earn a rotation spot.
Chris Haft is a reporter for MLB.com. This story was not subject to the approval of Major League Baseball or its clubs.