Updated

Washington, DC (SportsNetwork.com) - Joe Panik had a career-high four hits, including his first career home run, and the San Francisco Giants snapped the Washington Nationals' 10-game winning streak with a 10-3 win in the opener of a three-game set.

Panik drove in three and scored twice to help make a winner out of Tim Hudson (9-9), who allowed two runs -- one earned -- on five hits and a walk over 5 1/3 innings to snap a personal five-start winless drought.

"We showed a lot of character," said Panik. "Fister is having a great year and we were able to get to him."

Buster Posey homered with two RBI and Travis Ishikawa knocked in a pair of runs for San Francisco, which won for the fifth time in its last six games.

Hunter Pence, Pablo Sandoval and Gregor Blanco each had an RBI in the victory.

Doug Fister (12-4) lost for just the second time in his last 11 starts, surrendering four runs on seven hits and a walk over six innings of work.

Washington was in search of its first 11-game winning streak since returning back to the nation's capital in 2005, when the Nats also won 10 straight from June 2-12.

"We have to come back tomorrow ready to play and start a new one," Fister said of the streak.

Jayson Werth had a home run among his two hits and Wilson Ramos had an RBI for Washington.

The Nationals manufactured a run in the first on a double steal and a costly error by Panik at second base. Anthony Rendon walked with one out and Adam LaRoche singled two batters later. The two baserunners worked a double steal and Posey attempted to get the trailing runner at second, but Panik couldn't hold on to the ball as Rendon raced home for the game's first run.

Panik made up for the miscue by hitting his first major league homer in timely fashion. Sandoval reached on an infield single with two outs in the fourth and Michael Morse poked a single up the middle before Panik drove a Fister offering over the wall in center to give the Giants a 3-1 lead.

Werth led off the home fourth by reaching out and hitting his 13th homer of the season to cut the deficit in half.

Posey blasted his second homer in as many days, and 15th of the season, with one out in the sixth to restore the Giants' two-run cushion.

San Francisco added some insurance in the eighth as Blanco walked with two gone, Panik followed with a single and Ishikawa chased them home with a double off the out-of-town scoreboard in right.

Pence registered an RBI hit with a single to center as part of a four-run ninth for San Francisco.

Ramos doubled off Juan Gutierrez in the home ninth that scored Ian Desmond for the final margin.

Game Notes

Hudson is now 18-5 in 31 career matchups against the Nationals, the most wins he has recorded against an opponent ... Fister's four runs allowed were the most he has given up at home this season. He entered the game with a 1.76 ERA at Nationals Park, which ranked second lowest in all of baseball for pitchers with at least eight starts.