Resilient was not a word associated with the 2012 Rockies.

A year later, it's beginning to fit the team like Carlos Gonzalez's gold glove.

In their crazy 8-7 victory over the Padres on Sunday at Coors Field, the Rockies saw starter Juan Nicasio chase perfection for 5 innings, only to watch a 4-0 lead turn into a 7-4 deficit.

The Rockies had to rally to tie the game 7-7 in the ninth on Gonzalez's two-out, two-strike, two-run double to the right-field corner. They won the game in the 10th when Dexter Fowler hit a walk-off single up the middle off reliever Joe Thatcher, scoring pinch-runner DJ LeMahieu from third.

"You could sense in the dugout the guys were going to fight to the end today," manager Walt Weiss said. "It would have been a tough game to lose. The attitude was really good in the dugout, and guys kept competing."

Fowler's winning single was the fourth walk-off hit of his career and his second this season. Friday night, the Rockies won 10-9 on rookie third baseman Nolan Arenado's walk-off solo homer in the ninth inning.

The Rockies entered the San Diego series riding a wave of momentum after winning two of three games in Cincinnati. To start a crucial 10-game homestand by losing a four-game series to the Padres would have been demoralizing. Instead, they managed a split.

"This gets us ready for the playoffs," Fowler said with a big grin. "We are just trying to battle. But this builds character, and this helps us because we can rely on people later in the season."

Colorado's victory, combined with the Giants' 6-2 victory over the first-place Diamondbacks, left the Rockies and Giants 1½ games back in the National League West.

Sunday's game was the Rockies' sixth walk-off victory of the season, matching their 2012 total. The Rockies are 11-9 in one-run games this season (8-4 at home). They were 18-23 in one-run games last season.

"This was huge, especially to win at home," Fowler said. "We were down 2-1 in this series, so to even it up was big for us."

The Rockies' offense, as usual, jumped out quickly. Troy Tulowitzki launched a two-run homer in the first inning off Clayton Richard. The Rockies increased their lead to 4-0 in the third, the big hit an RBI triple by Arenado.

But the offense hit the snooze button for the next five innings, prompting the need for a ninth-inning wake-up call. Down 7-4, the rally unfolded this way: Jonathan Herrera hit a one-out single off Luke Gregerson and scored on Tyler Colvin's pinch-hit single up the middle. Fowler followed with a rolling single just out of the reach of shortstop Everth Cabrera, moving Colvin to third. Then Fowler stole second. Eric Young Jr. struck out, leaving the game in the hands of Gonzalez, who delivered his clutch, game-tying double.

Nicasio's quest for a no-hitter ended in the sixth with Nick Hundley's one-out, solo home run into the left-field bleachers. Up to that point, not a single Padre had reached first base.

"I wasn't trying to pitch a no-hitter. I was just pitching to get outs," said Nicasio, who was clearly upset when Hundley hit the ball out. "Yorvit (catcher Torrealba) wanted a sinker down in the dirt, but I left it up."