SAN FRANCISCO -- Colby Rasmus homered to lead off the seventh inning to help Scott Feldman earn his first win in more than two months, and the Houston Astros held on to beat the San Francisco Giants 2-0 on Wednesday.