The Giants scratched slugger Rafael Devers from the starting lineup because of a tight hamstring, keeping him out of a spring training game against the Dodgers on Friday.