Gervonta Davis just scored a big win in court -- he avoided a jail sentence in his hit-and-run case ... getting hit with three months of house arrest instead.
The star boxer learned his fate inside of a Baltimore courtroom minutes ago ... less than three months after he cut a plea deal with prosecutors in the case.
As part of the agreement he made with officials back on Feb. 16, Davis pleaded guilty to four lesser offenses .