There's something different around the Dodgers these days.

Wins. And several of them. All in a row.

Clayton Kershaw pitched eight solid innings, Yasiel Puig had three hits, Hanley Ramirez did a little bit of everything and Kenley Jansen got the final three outs as the Dodgers beat the Giants 4-2 Wednesday at Dodger Stadium.

It had been four years since the Dodgers swept the Giants at Dodger Stadium.

"It helps our confidence putting some wins together," Dodgers manager Don Mattingly said. "Obviously, it feels good. You talk about playing music in the locker room. When this is going on, you epxect to win. In the other scenario, it's like you were epxecting something was going to go wrong. We had some big hits."

Kershaw was stellar once again. He allowed two runs on four hits in 8-plus innings. Mattingly sent him out to try to go for the complete game, but Kershaw allowed a leadoff single to Marco Scutaro in the ninth inning and with Buster Posey - who earlier hit a two-run homer up next - his night was done. He received a standing ovation.

Everything seems right with the world when you're winning, and the Dodgers are finally getting healthy and seemingly putting the pieces together.

Puig has brought much of that energy, as has Ramirez, who has at least one RBI in each of the last six games. He was 2 for 3 with one RBI, one run, a stolen base and has a nine-game hitting streak.

He's batting .485 with two doubles, four home runs and 11 RBIs during his last nine games.

Puig has done well with crazy hype, while Ramirez's production has taken a backseat. Ramirez jokes that he's just taking cues from Puig. Mattingly compared him to another Ramirez who played here.

"Hanley's really good. None of this stuff surprises me," Mattingly said.

"He can really hit. I was watching him tonight, and I'm thinking of Manny (Ramirez). Honestly, when you see him you think like that. He's that good.

"He's a special talent."

Ramirez played down the comparison - Hanley, of course.

"It's a good compliment," Ramirez said. "(Manny) was one of the top hitters in the game. It makes you keep working harder to stay on that level."

Down 2-1, the Dodgers had a three-run burst in the sixth inning to take a 4-2 lead. The Dodgers tied the game on an Andre Ethier single to right that scored Ramirez from second. Ethier stole second, and A.J. Ellis doubled to score Ethier. Ellis eventually scored on a Tim Lincecum wild pitch, and Lincecum was chased in that innning.

It was a rough outing for Lincecum, who allowed four earned runs on 10 hits. He's won just four games this year.

Kershaw had his first win in a month and when told, he said: "Thanks for reminding me."