Jim Davenport, an infielder who played third base for most of his career with the San Francisco Giants and battled the Yankees in the World Series in 1962, the first time the Giants had played in one since they left New York, died on Thursday in Redwood City, Calif. He was 82.

The cause was heart failure, the Giants announced.

Davenport was a Giant for most of five decades — as a player, a coach and a manager — beginning in 1958, the team’s first season in California.

A right-handed hitter who was often in the leadoff spot, he took the Giants’ first at-bat on the West Coast, according to The San Jose Mercury News, and played alongside stars like Willie Mays, Willie McCovey and Orlando Cepeda.

Davenport had 10 game-winning hits in 1969 and retired after the 1970 season with a career batting average of .258.