SAN FRANCISCO Madison Bumgarner allowed four hits over seven innings to win for the second time since returning from a dirt bike accident, helping the San Francisco Giants defeat the Chicago Cubs 3-1 Wednesday and complete a winning homestand for only the second time this season.