Logan Webb pitched six scoreless innings and Mike Yastrzemski hit a two-run homer as the San Francisco Giants beat the Los Angeles Dodgers 4-1 on Wednesday night to avoid a three-game sweep. Webb (4-4) limited Los Angeles to three hits, striking out five and walking three to help the Giants snap a six-game losing streak against their longtime rivals. “I think we were kind of embarrassed about how we played the first two games,” Webb said. The right-hander got some help from his defense in the fourth when center fielder Luis Matos leaped and reached over the wall to rob Teoscar Hernández of a home run.