Solid pitching from Tim Lincecum and a six-run offense put the Giants back in the win column, snap Dodgers' winning streak.