A fast track court here has sentenced a man to 20 years of imprisonment for raping a minor girl in 2020.