Jason Heyward, Freddie Freeman and Juan Francisco homered for the Braves, who have won back-to-back games after losing six of seven. Martin Prado and Brian McCann also drove in runs for the NL wild-card leaders.
With the win and Washington’s loss to Phillies, Atlanta is now 4½ games back in the NL East.
Hudson (13-4) gave up five hits and beat the Giants for the sixth consecutive time. He walked one and struck out three. The right-hander has not lost since July 1.
Tim Lincecum (7-14) lasted five innings, allowing three runs and seven hits. He walked two and struck out four.
Brandon Crawford drove in the only run for the Giants, who have dropped two in a row after winning five consecutive games. Hunter Pence had three hits.
Lincecum allowed two runs in the first inning and one in the fourth, his two worst innings of the season. He’s given up 25 runs in the first and 24 in the fourth. Both of his walks came within the first four batters of the game.
Prado had an RBI groundout and McCann added a run-scoring single for one of his three hits. Francisco’s home run put Atlanta up 3-0 in the fourth and Janish’s first triple of the year – the second of his career – made it 5-0 in the sixth.
Heyward and Freeman homered on successive pitches from Clay Hensley in the ninth. Heyward, who has connected in three consecutive games, has been involved in all three back-to-back home runs for the Braves this season.