Outfielder Heliot Ramos also left the Giants' first game of spring training in the fifth inning after being hit in the foot with a breaking ball.