JaMychal Green signed a two-year, partially guaranteed contract with the San Antonio Spurs on Wednesday, a league source told RealGM.

The Spurs announced the signing of Green in a press release Wednesday afternoon.

Green, a 6-foot-9 forward who went undrafted in 2012, played for the Spurs’ summer league entry in Las Vegas this year. In six games, Green averaged 7.8 points and 6.5 rebounds while shooting 44.2 percent from the floor.

Green was part of the Spurs’ organization in 2012, when the team signed him to an undrafted free-agent deal after his participation in summer league. He also played for the Spurs’ Development League affiliate in Austin.

Green, a four-year player at the University of Alabama, played last season in the French Pro A League for Roanne, averaging 11.8 points and 6.6 rebounds in 22.1 minutes in 25 games while shooting .530 (122-230) from the field.