Giants right fielder Hunter Pence left Thursday night's 4-0 victory over the Los Angeles Dodgers after five innings with a tight right hamstring.