Nori Aoki and Joe Panik hit consecutive first-inning home runs off Jered Weaver (0-4). San Francisco has won eight of 11 following a 4-10 start.
Lincecum (2-2) walked one and struck out four in eight scoreless innings, lowering his ERA to 2.40. The two-time NL Cy Young Award winner also singled twice off Weaver.
Lincecum allowed only three runners in the first five innings then pitched out of two-on, no-outs jam in the sixth.
Jean Machi struck out Mike Trout and Albert Pujols in a hitless ninth.
Weaver (0-4) gave up five runs and 10 hits in five innings. The three-time All-Star is 0-5 with a 6.25 ERA since beating Texas on Sept. 20.
Aoki hit his first home run of the season on Weaver's first pitch of the afternoon. Three pitches later, Panik homered on a hanging curve.
Angel Pagan came within 15 feet of making it three straight when he tripled off the brick wall in right-center, not far from where Panik's home run landed.
San Francisco made it 3-0 in the third when Panik singled and scored as Brandon Belt hit into a forceout.
Brandon Crawford hit a two-run, two-out double in the fifth.
Angels: C Chris Iannetta, who sustained a cut finger on his throwing hand a week ago, singled in the sixth to end an 0-for-21 slide. ... Iannetta was batting in the ninth spot. Manager Mike Scioscia had Weaver batting eighth _ the first time in franchise history that a starting pitcher has batted eighth.
Giants: RHP Matt Cain (flexor tendon strain) will continue to throw off flat ground for the next week. RHP Jake Peavey (back strain) will throw a bullpen session Tuesday. OF Hunter Pence (fractured forearm) took batting practice before the game for the first time since getting hurt.
Angels: RHP Matt Shoemaker (2-1) starts Monday in Seattle and has not lost in five career games against the Mariners.
Giants: LHP Madison Bumgarner (2-1) faces San Diego on Monday looking to redeem himself after giving up five runs and 10 hits in just three innings against the Padres on April 11.