Ahmed signed a major-league contract with the Dodgers on Wednesday, Fabian Ardaya of The Athletic reports.

Ahmed was released by the Giants on July 10 but will now find work in the Dodgers' infield as Miguel Rojas (forearm) heads to the IL. Ahmed slashed just .232/.278/.303 through 172 plate appearances during his time in San Francisco, though he will still see the majority of reps at shortstop while Rojas is out.